From 1120e8e2e320c816626a78e76b3812907676d2ed Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Sat, 27 Aug 2016 13:08:48 -0400 Subject: [PATCH] chore(all): prepare release 0.12.1 --- bower.json | 2 +- dist/amd/aurelia-validation.d.ts | 2 +- dist/amd/aurelia-validation.js | 4 +- dist/amd/implementation/metadata-key.d.ts | 1 - dist/amd/implementation/metadata-key.js | 4 -- dist/amd/implementation/rules.d.ts | 22 +++++++++ dist/amd/implementation/rules.js | 40 ++++++++++++++++ dist/amd/implementation/standard-validator.js | 6 +-- dist/amd/implementation/validation-parser.js | 3 +- dist/amd/implementation/validation-rules.d.ts | 5 ++ dist/amd/implementation/validation-rules.js | 14 ++++-- dist/commonjs/aurelia-validation.d.ts | 2 +- dist/commonjs/aurelia-validation.js | 2 +- .../commonjs/implementation/metadata-key.d.ts | 1 - dist/commonjs/implementation/metadata-key.js | 2 - dist/commonjs/implementation/rules.d.ts | 22 +++++++++ dist/commonjs/implementation/rules.js | 38 +++++++++++++++ .../implementation/standard-validator.js | 7 ++- .../implementation/validation-parser.js | 3 +- .../implementation/validation-rules.d.ts | 5 ++ .../implementation/validation-rules.js | 15 +++--- dist/es2015/aurelia-validation.d.ts | 2 +- dist/es2015/aurelia-validation.js | 2 +- dist/es2015/implementation/metadata-key.d.ts | 1 - dist/es2015/implementation/metadata-key.js | 1 - dist/es2015/implementation/rules.d.ts | 22 +++++++++ dist/es2015/implementation/rules.js | 33 +++++++++++++ .../implementation/standard-validator.js | 7 ++- .../implementation/validation-parser.js | 3 +- .../implementation/validation-rules.d.ts | 5 ++ .../es2015/implementation/validation-rules.js | 15 +++--- dist/native-modules/aurelia-validation.d.ts | 2 +- dist/native-modules/aurelia-validation.js | 2 +- .../implementation/metadata-key.d.ts | 1 - .../implementation/metadata-key.js | 1 - dist/native-modules/implementation/rules.d.ts | 22 +++++++++ dist/native-modules/implementation/rules.js | 36 ++++++++++++++ .../implementation/standard-validator.js | 7 ++- .../implementation/validation-parser.js | 3 +- .../implementation/validation-rules.d.ts | 5 ++ .../implementation/validation-rules.js | 15 +++--- dist/system/aurelia-validation.d.ts | 2 +- dist/system/aurelia-validation.js | 6 +-- dist/system/implementation/metadata-key.d.ts | 1 - dist/system/implementation/metadata-key.js | 11 ----- dist/system/implementation/rules.d.ts | 22 +++++++++ dist/system/implementation/rules.js | 47 +++++++++++++++++++ .../implementation/standard-validator.js | 15 +++--- .../implementation/validation-parser.js | 3 +- .../implementation/validation-rules.d.ts | 5 ++ .../system/implementation/validation-rules.js | 23 ++++----- doc/api.json | 2 +- package.json | 2 +- 53 files changed, 421 insertions(+), 103 deletions(-) delete mode 100644 dist/amd/implementation/metadata-key.d.ts delete mode 100644 dist/amd/implementation/metadata-key.js create mode 100644 dist/amd/implementation/rules.d.ts create mode 100644 dist/amd/implementation/rules.js delete mode 100644 dist/commonjs/implementation/metadata-key.d.ts delete mode 100644 dist/commonjs/implementation/metadata-key.js create mode 100644 dist/commonjs/implementation/rules.d.ts create mode 100644 dist/commonjs/implementation/rules.js delete mode 100644 dist/es2015/implementation/metadata-key.d.ts delete mode 100644 dist/es2015/implementation/metadata-key.js create mode 100644 dist/es2015/implementation/rules.d.ts create mode 100644 dist/es2015/implementation/rules.js delete mode 100644 dist/native-modules/implementation/metadata-key.d.ts delete mode 100644 dist/native-modules/implementation/metadata-key.js create mode 100644 dist/native-modules/implementation/rules.d.ts create mode 100644 dist/native-modules/implementation/rules.js delete mode 100644 dist/system/implementation/metadata-key.d.ts delete mode 100644 dist/system/implementation/metadata-key.js create mode 100644 dist/system/implementation/rules.d.ts create mode 100644 dist/system/implementation/rules.js diff --git a/bower.json b/bower.json index 4a08adab..ad8f89f3 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.12.0", + "version": "0.12.1", "description": "Validation for Aurelia applications", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-validation.d.ts b/dist/amd/aurelia-validation.d.ts index b84c411d..b73b53e1 100644 --- a/dist/amd/aurelia-validation.d.ts +++ b/dist/amd/aurelia-validation.d.ts @@ -7,8 +7,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/amd/aurelia-validation.js b/dist/amd/aurelia-validation.js index 36c85bce..2376dce3 100644 --- a/dist/amd/aurelia-validation.js +++ b/dist/amd/aurelia-validation.js @@ -1,5 +1,5 @@ // Exports -define(["require", "exports", './validate-binding-behavior', './validate-trigger', './validation-controller', './validation-controller-factory', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validator', './implementation/metadata-key', './implementation/standard-validator', './implementation/validation-messages', './implementation/validation-parser', './implementation/validation-rules', './validator', './implementation/standard-validator', './implementation/validation-parser', './implementation/validation-rules'], function (require, exports, validate_binding_behavior_1, validate_trigger_1, validation_controller_1, validation_controller_factory_1, validation_error_1, validation_errors_custom_attribute_1, validation_renderer_custom_attribute_1, validator_1, metadata_key_1, standard_validator_1, validation_messages_1, validation_parser_1, validation_rules_1, validator_2, standard_validator_2, validation_parser_2, validation_rules_2) { +define(["require", "exports", './validate-binding-behavior', './validate-trigger', './validation-controller', './validation-controller-factory', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validator', './implementation/rules', './implementation/standard-validator', './implementation/validation-messages', './implementation/validation-parser', './implementation/validation-rules', './validator', './implementation/standard-validator', './implementation/validation-parser', './implementation/validation-rules'], function (require, exports, validate_binding_behavior_1, validate_trigger_1, validation_controller_1, validation_controller_factory_1, validation_error_1, validation_errors_custom_attribute_1, validation_renderer_custom_attribute_1, validator_1, rules_1, standard_validator_1, validation_messages_1, validation_parser_1, validation_rules_1, validator_2, standard_validator_2, validation_parser_2, validation_rules_2) { "use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; @@ -12,7 +12,7 @@ define(["require", "exports", './validate-binding-behavior', './validate-trigger __export(validation_errors_custom_attribute_1); __export(validation_renderer_custom_attribute_1); __export(validator_1); - __export(metadata_key_1); + __export(rules_1); __export(standard_validator_1); __export(validation_messages_1); __export(validation_parser_1); diff --git a/dist/amd/implementation/metadata-key.d.ts b/dist/amd/implementation/metadata-key.d.ts deleted file mode 100644 index 36a6a5c6..00000000 --- a/dist/amd/implementation/metadata-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const metadataKey: string; diff --git a/dist/amd/implementation/metadata-key.js b/dist/amd/implementation/metadata-key.js deleted file mode 100644 index 0aff5d4a..00000000 --- a/dist/amd/implementation/metadata-key.js +++ /dev/null @@ -1,4 +0,0 @@ -define(["require", "exports"], function (require, exports) { - "use strict"; - exports.metadataKey = 'validation:rules'; -}); diff --git a/dist/amd/implementation/rules.d.ts b/dist/amd/implementation/rules.d.ts new file mode 100644 index 00000000..56bd6856 --- /dev/null +++ b/dist/amd/implementation/rules.d.ts @@ -0,0 +1,22 @@ +import { Rule } from './rule'; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export declare class Rules { + /** + * The name of the property that stores the rules. + */ + static key: string; + /** + * Applies the rules to a target. + */ + static set(target: any, rules: Rule[]): void; + /** + * Removes rules from a target. + */ + static unset(target: any): void; + /** + * Retrieves the target's rules. + */ + static get(target: any): Rule[] | null; +} diff --git a/dist/amd/implementation/rules.js b/dist/amd/implementation/rules.js new file mode 100644 index 00000000..45b077ab --- /dev/null +++ b/dist/amd/implementation/rules.js @@ -0,0 +1,40 @@ +define(["require", "exports"], function (require, exports) { + "use strict"; + /** + * Sets, unsets and retrieves rules on an object or constructor function. + */ + var Rules = (function () { + function Rules() { + } + /** + * Applies the rules to a target. + */ + Rules.set = function (target, rules) { + if (target instanceof Function) { + target = target.prototype; + } + Object.defineProperty(target, Rules.key, { enumerable: false, configurable: false, writable: true, value: rules }); + }; + /** + * Removes rules from a target. + */ + Rules.unset = function (target) { + if (target instanceof Function) { + target = target.prototype; + } + target[Rules.key] = null; + }; + /** + * Retrieves the target's rules. + */ + Rules.get = function (target) { + return target[Rules.key] || null; + }; + /** + * The name of the property that stores the rules. + */ + Rules.key = '__rules__'; + return Rules; + }()); + exports.Rules = Rules; +}); diff --git a/dist/amd/implementation/standard-validator.js b/dist/amd/implementation/standard-validator.js index a29b351d..35608d4a 100644 --- a/dist/amd/implementation/standard-validator.js +++ b/dist/amd/implementation/standard-validator.js @@ -3,7 +3,7 @@ var __extends = (this && this.__extends) || function (d, b) { function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; -define(["require", "exports", 'aurelia-templating', 'aurelia-metadata', '../validator', '../validation-error', './metadata-key', './validation-messages'], function (require, exports, aurelia_templating_1, aurelia_metadata_1, validator_1, validation_error_1, metadata_key_1, validation_messages_1) { +define(["require", "exports", 'aurelia-templating', '../validator', '../validation-error', './rules', './validation-messages'], function (require, exports, aurelia_templating_1, validator_1, validation_error_1, rules_1, validation_messages_1) { "use strict"; /** * Validates. @@ -36,8 +36,8 @@ define(["require", "exports", 'aurelia-templating', 'aurelia-metadata', '../vali var errors = []; // rules specified? if (!rules) { - // no. locate the rules via metadata. - rules = aurelia_metadata_1.metadata.get(metadata_key_1.metadataKey, object); + // no. locate the rules via metadata. + rules = rules_1.Rules.get(object); } // any rules? if (!rules) { diff --git a/dist/amd/implementation/validation-parser.js b/dist/amd/implementation/validation-parser.js index 12827b74..f27d86e6 100644 --- a/dist/amd/implementation/validation-parser.js +++ b/dist/amd/implementation/validation-parser.js @@ -45,7 +45,8 @@ define(["require", "exports", 'aurelia-binding', 'aurelia-templating', './util'] else { accessor = this.getAccessorExpression(property); } - if (accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { + if (accessor instanceof aurelia_binding_1.AccessScope + || accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { return { name: accessor.name, displayName: null diff --git a/dist/amd/implementation/validation-rules.d.ts b/dist/amd/implementation/validation-rules.d.ts index 80df6d2e..c810e395 100644 --- a/dist/amd/implementation/validation-rules.d.ts +++ b/dist/amd/implementation/validation-rules.d.ts @@ -221,4 +221,9 @@ export declare class ValidationRules { * @param tag The tag to search for. */ static taggedRules(rules: Rule[], tag: string): Rule[]; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target: any): void; } diff --git a/dist/amd/implementation/validation-rules.js b/dist/amd/implementation/validation-rules.js index 8c947e37..4c5cdd41 100644 --- a/dist/amd/implementation/validation-rules.js +++ b/dist/amd/implementation/validation-rules.js @@ -1,4 +1,4 @@ -define(["require", "exports", 'aurelia-metadata', './util', './metadata-key', './validation-messages'], function (require, exports, aurelia_metadata_1, util_1, metadata_key_1, validation_messages_1) { +define(["require", "exports", './util', './rules', './validation-messages'], function (require, exports, util_1, rules_1, validation_messages_1) { "use strict"; /** * Part of the fluent rule API. Enables customizing property rules. @@ -303,10 +303,7 @@ define(["require", "exports", 'aurelia-metadata', './util', './metadata-key', '. * @param target A class or object. */ FluentEnsure.prototype.on = function (target) { - if (target instanceof Function) { - target = target.prototype; - } - aurelia_metadata_1.metadata.define(metadata_key_1.metadataKey, this.rules, target); + rules_1.Rules.set(target, this.rules); return this; }; FluentEnsure.prototype.assertInitialized = function () { @@ -359,6 +356,13 @@ define(["require", "exports", 'aurelia-metadata', './util', './metadata-key', '. ValidationRules.taggedRules = function (rules, tag) { return rules.filter(function (r) { return r.tag === tag; }); }; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + ValidationRules.off = function (target) { + rules_1.Rules.unset(target); + }; return ValidationRules; }()); exports.ValidationRules = ValidationRules; diff --git a/dist/commonjs/aurelia-validation.d.ts b/dist/commonjs/aurelia-validation.d.ts index b84c411d..b73b53e1 100644 --- a/dist/commonjs/aurelia-validation.d.ts +++ b/dist/commonjs/aurelia-validation.d.ts @@ -7,8 +7,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/commonjs/aurelia-validation.js b/dist/commonjs/aurelia-validation.js index 768a999b..af4277f2 100644 --- a/dist/commonjs/aurelia-validation.js +++ b/dist/commonjs/aurelia-validation.js @@ -11,7 +11,7 @@ __export(require('./validation-error')); __export(require('./validation-errors-custom-attribute')); __export(require('./validation-renderer-custom-attribute')); __export(require('./validator')); -__export(require('./implementation/metadata-key')); +__export(require('./implementation/rules')); __export(require('./implementation/standard-validator')); __export(require('./implementation/validation-messages')); __export(require('./implementation/validation-parser')); diff --git a/dist/commonjs/implementation/metadata-key.d.ts b/dist/commonjs/implementation/metadata-key.d.ts deleted file mode 100644 index 36a6a5c6..00000000 --- a/dist/commonjs/implementation/metadata-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const metadataKey: string; diff --git a/dist/commonjs/implementation/metadata-key.js b/dist/commonjs/implementation/metadata-key.js deleted file mode 100644 index 8ef6accf..00000000 --- a/dist/commonjs/implementation/metadata-key.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -exports.metadataKey = 'validation:rules'; diff --git a/dist/commonjs/implementation/rules.d.ts b/dist/commonjs/implementation/rules.d.ts new file mode 100644 index 00000000..56bd6856 --- /dev/null +++ b/dist/commonjs/implementation/rules.d.ts @@ -0,0 +1,22 @@ +import { Rule } from './rule'; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export declare class Rules { + /** + * The name of the property that stores the rules. + */ + static key: string; + /** + * Applies the rules to a target. + */ + static set(target: any, rules: Rule[]): void; + /** + * Removes rules from a target. + */ + static unset(target: any): void; + /** + * Retrieves the target's rules. + */ + static get(target: any): Rule[] | null; +} diff --git a/dist/commonjs/implementation/rules.js b/dist/commonjs/implementation/rules.js new file mode 100644 index 00000000..3a9b0094 --- /dev/null +++ b/dist/commonjs/implementation/rules.js @@ -0,0 +1,38 @@ +"use strict"; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +var Rules = (function () { + function Rules() { + } + /** + * Applies the rules to a target. + */ + Rules.set = function (target, rules) { + if (target instanceof Function) { + target = target.prototype; + } + Object.defineProperty(target, Rules.key, { enumerable: false, configurable: false, writable: true, value: rules }); + }; + /** + * Removes rules from a target. + */ + Rules.unset = function (target) { + if (target instanceof Function) { + target = target.prototype; + } + target[Rules.key] = null; + }; + /** + * Retrieves the target's rules. + */ + Rules.get = function (target) { + return target[Rules.key] || null; + }; + /** + * The name of the property that stores the rules. + */ + Rules.key = '__rules__'; + return Rules; +}()); +exports.Rules = Rules; diff --git a/dist/commonjs/implementation/standard-validator.js b/dist/commonjs/implementation/standard-validator.js index ad48fd8d..2f3a5aa0 100644 --- a/dist/commonjs/implementation/standard-validator.js +++ b/dist/commonjs/implementation/standard-validator.js @@ -5,10 +5,9 @@ var __extends = (this && this.__extends) || function (d, b) { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var aurelia_templating_1 = require('aurelia-templating'); -var aurelia_metadata_1 = require('aurelia-metadata'); var validator_1 = require('../validator'); var validation_error_1 = require('../validation-error'); -var metadata_key_1 = require('./metadata-key'); +var rules_1 = require('./rules'); var validation_messages_1 = require('./validation-messages'); /** * Validates. @@ -41,8 +40,8 @@ var StandardValidator = (function (_super) { var errors = []; // rules specified? if (!rules) { - // no. locate the rules via metadata. - rules = aurelia_metadata_1.metadata.get(metadata_key_1.metadataKey, object); + // no. locate the rules via metadata. + rules = rules_1.Rules.get(object); } // any rules? if (!rules) { diff --git a/dist/commonjs/implementation/validation-parser.js b/dist/commonjs/implementation/validation-parser.js index 20897b29..3034b42d 100644 --- a/dist/commonjs/implementation/validation-parser.js +++ b/dist/commonjs/implementation/validation-parser.js @@ -47,7 +47,8 @@ var ValidationParser = (function () { else { accessor = this.getAccessorExpression(property); } - if (accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { + if (accessor instanceof aurelia_binding_1.AccessScope + || accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { return { name: accessor.name, displayName: null diff --git a/dist/commonjs/implementation/validation-rules.d.ts b/dist/commonjs/implementation/validation-rules.d.ts index 80df6d2e..c810e395 100644 --- a/dist/commonjs/implementation/validation-rules.d.ts +++ b/dist/commonjs/implementation/validation-rules.d.ts @@ -221,4 +221,9 @@ export declare class ValidationRules { * @param tag The tag to search for. */ static taggedRules(rules: Rule[], tag: string): Rule[]; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target: any): void; } diff --git a/dist/commonjs/implementation/validation-rules.js b/dist/commonjs/implementation/validation-rules.js index a5a1dab1..cec7071f 100644 --- a/dist/commonjs/implementation/validation-rules.js +++ b/dist/commonjs/implementation/validation-rules.js @@ -1,7 +1,6 @@ "use strict"; -var aurelia_metadata_1 = require('aurelia-metadata'); var util_1 = require('./util'); -var metadata_key_1 = require('./metadata-key'); +var rules_1 = require('./rules'); var validation_messages_1 = require('./validation-messages'); /** * Part of the fluent rule API. Enables customizing property rules. @@ -306,10 +305,7 @@ var FluentEnsure = (function () { * @param target A class or object. */ FluentEnsure.prototype.on = function (target) { - if (target instanceof Function) { - target = target.prototype; - } - aurelia_metadata_1.metadata.define(metadata_key_1.metadataKey, this.rules, target); + rules_1.Rules.set(target, this.rules); return this; }; FluentEnsure.prototype.assertInitialized = function () { @@ -362,6 +358,13 @@ var ValidationRules = (function () { ValidationRules.taggedRules = function (rules, tag) { return rules.filter(function (r) { return r.tag === tag; }); }; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + ValidationRules.off = function (target) { + rules_1.Rules.unset(target); + }; return ValidationRules; }()); exports.ValidationRules = ValidationRules; diff --git a/dist/es2015/aurelia-validation.d.ts b/dist/es2015/aurelia-validation.d.ts index b84c411d..b73b53e1 100644 --- a/dist/es2015/aurelia-validation.d.ts +++ b/dist/es2015/aurelia-validation.d.ts @@ -7,8 +7,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/es2015/aurelia-validation.js b/dist/es2015/aurelia-validation.js index 44ad336f..662e4413 100644 --- a/dist/es2015/aurelia-validation.js +++ b/dist/es2015/aurelia-validation.js @@ -8,8 +8,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/es2015/implementation/metadata-key.d.ts b/dist/es2015/implementation/metadata-key.d.ts deleted file mode 100644 index 36a6a5c6..00000000 --- a/dist/es2015/implementation/metadata-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const metadataKey: string; diff --git a/dist/es2015/implementation/metadata-key.js b/dist/es2015/implementation/metadata-key.js deleted file mode 100644 index df068587..00000000 --- a/dist/es2015/implementation/metadata-key.js +++ /dev/null @@ -1 +0,0 @@ -export const metadataKey = 'validation:rules'; diff --git a/dist/es2015/implementation/rules.d.ts b/dist/es2015/implementation/rules.d.ts new file mode 100644 index 00000000..56bd6856 --- /dev/null +++ b/dist/es2015/implementation/rules.d.ts @@ -0,0 +1,22 @@ +import { Rule } from './rule'; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export declare class Rules { + /** + * The name of the property that stores the rules. + */ + static key: string; + /** + * Applies the rules to a target. + */ + static set(target: any, rules: Rule[]): void; + /** + * Removes rules from a target. + */ + static unset(target: any): void; + /** + * Retrieves the target's rules. + */ + static get(target: any): Rule[] | null; +} diff --git a/dist/es2015/implementation/rules.js b/dist/es2015/implementation/rules.js new file mode 100644 index 00000000..db8977e5 --- /dev/null +++ b/dist/es2015/implementation/rules.js @@ -0,0 +1,33 @@ +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export class Rules { + /** + * Applies the rules to a target. + */ + static set(target, rules) { + if (target instanceof Function) { + target = target.prototype; + } + Object.defineProperty(target, Rules.key, { enumerable: false, configurable: false, writable: true, value: rules }); + } + /** + * Removes rules from a target. + */ + static unset(target) { + if (target instanceof Function) { + target = target.prototype; + } + target[Rules.key] = null; + } + /** + * Retrieves the target's rules. + */ + static get(target) { + return target[Rules.key] || null; + } +} +/** + * The name of the property that stores the rules. + */ +Rules.key = '__rules__'; diff --git a/dist/es2015/implementation/standard-validator.js b/dist/es2015/implementation/standard-validator.js index f6d8b991..399cb62d 100644 --- a/dist/es2015/implementation/standard-validator.js +++ b/dist/es2015/implementation/standard-validator.js @@ -1,8 +1,7 @@ import { ViewResources } from 'aurelia-templating'; -import { metadata } from 'aurelia-metadata'; import { Validator } from '../validator'; import { ValidationError } from '../validation-error'; -import { metadataKey } from './metadata-key'; +import { Rules } from './rules'; import { ValidationMessageProvider } from './validation-messages'; /** * Validates. @@ -33,8 +32,8 @@ export class StandardValidator extends Validator { const errors = []; // rules specified? if (!rules) { - // no. locate the rules via metadata. - rules = metadata.get(metadataKey, object); + // no. locate the rules via metadata. + rules = Rules.get(object); } // any rules? if (!rules) { diff --git a/dist/es2015/implementation/validation-parser.js b/dist/es2015/implementation/validation-parser.js index dfe2cda1..a5ac9a60 100644 --- a/dist/es2015/implementation/validation-parser.js +++ b/dist/es2015/implementation/validation-parser.js @@ -46,7 +46,8 @@ export class ValidationParser { else { accessor = this.getAccessorExpression(property); } - if (accessor instanceof AccessMember && accessor.object instanceof AccessScope) { + if (accessor instanceof AccessScope + || accessor instanceof AccessMember && accessor.object instanceof AccessScope) { return { name: accessor.name, displayName: null diff --git a/dist/es2015/implementation/validation-rules.d.ts b/dist/es2015/implementation/validation-rules.d.ts index 80df6d2e..c810e395 100644 --- a/dist/es2015/implementation/validation-rules.d.ts +++ b/dist/es2015/implementation/validation-rules.d.ts @@ -221,4 +221,9 @@ export declare class ValidationRules { * @param tag The tag to search for. */ static taggedRules(rules: Rule[], tag: string): Rule[]; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target: any): void; } diff --git a/dist/es2015/implementation/validation-rules.js b/dist/es2015/implementation/validation-rules.js index 5f59ea38..6acb8054 100644 --- a/dist/es2015/implementation/validation-rules.js +++ b/dist/es2015/implementation/validation-rules.js @@ -1,6 +1,5 @@ -import { metadata } from 'aurelia-metadata'; import { isString } from './util'; -import { metadataKey } from './metadata-key'; +import { Rules } from './rules'; import { validationMessages } from './validation-messages'; /** * Part of the fluent rule API. Enables customizing property rules. @@ -284,10 +283,7 @@ export class FluentEnsure { * @param target A class or object. */ on(target) { - if (target instanceof Function) { - target = target.prototype; - } - metadata.define(metadataKey, this.rules, target); + Rules.set(target, this.rules); return this; } assertInitialized() { @@ -336,4 +332,11 @@ export class ValidationRules { static taggedRules(rules, tag) { return rules.filter(r => r.tag === tag); } + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target) { + Rules.unset(target); + } } diff --git a/dist/native-modules/aurelia-validation.d.ts b/dist/native-modules/aurelia-validation.d.ts index b84c411d..b73b53e1 100644 --- a/dist/native-modules/aurelia-validation.d.ts +++ b/dist/native-modules/aurelia-validation.d.ts @@ -7,8 +7,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/native-modules/aurelia-validation.js b/dist/native-modules/aurelia-validation.js index e0a007d9..d7b627ac 100644 --- a/dist/native-modules/aurelia-validation.js +++ b/dist/native-modules/aurelia-validation.js @@ -8,8 +8,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/native-modules/implementation/metadata-key.d.ts b/dist/native-modules/implementation/metadata-key.d.ts deleted file mode 100644 index 36a6a5c6..00000000 --- a/dist/native-modules/implementation/metadata-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const metadataKey: string; diff --git a/dist/native-modules/implementation/metadata-key.js b/dist/native-modules/implementation/metadata-key.js deleted file mode 100644 index 8146bb24..00000000 --- a/dist/native-modules/implementation/metadata-key.js +++ /dev/null @@ -1 +0,0 @@ -export var metadataKey = 'validation:rules'; diff --git a/dist/native-modules/implementation/rules.d.ts b/dist/native-modules/implementation/rules.d.ts new file mode 100644 index 00000000..56bd6856 --- /dev/null +++ b/dist/native-modules/implementation/rules.d.ts @@ -0,0 +1,22 @@ +import { Rule } from './rule'; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export declare class Rules { + /** + * The name of the property that stores the rules. + */ + static key: string; + /** + * Applies the rules to a target. + */ + static set(target: any, rules: Rule[]): void; + /** + * Removes rules from a target. + */ + static unset(target: any): void; + /** + * Retrieves the target's rules. + */ + static get(target: any): Rule[] | null; +} diff --git a/dist/native-modules/implementation/rules.js b/dist/native-modules/implementation/rules.js new file mode 100644 index 00000000..5a79a5fc --- /dev/null +++ b/dist/native-modules/implementation/rules.js @@ -0,0 +1,36 @@ +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export var Rules = (function () { + function Rules() { + } + /** + * Applies the rules to a target. + */ + Rules.set = function (target, rules) { + if (target instanceof Function) { + target = target.prototype; + } + Object.defineProperty(target, Rules.key, { enumerable: false, configurable: false, writable: true, value: rules }); + }; + /** + * Removes rules from a target. + */ + Rules.unset = function (target) { + if (target instanceof Function) { + target = target.prototype; + } + target[Rules.key] = null; + }; + /** + * Retrieves the target's rules. + */ + Rules.get = function (target) { + return target[Rules.key] || null; + }; + /** + * The name of the property that stores the rules. + */ + Rules.key = '__rules__'; + return Rules; +}()); diff --git a/dist/native-modules/implementation/standard-validator.js b/dist/native-modules/implementation/standard-validator.js index 03095707..dc94693c 100644 --- a/dist/native-modules/implementation/standard-validator.js +++ b/dist/native-modules/implementation/standard-validator.js @@ -4,10 +4,9 @@ var __extends = (this && this.__extends) || function (d, b) { d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; import { ViewResources } from 'aurelia-templating'; -import { metadata } from 'aurelia-metadata'; import { Validator } from '../validator'; import { ValidationError } from '../validation-error'; -import { metadataKey } from './metadata-key'; +import { Rules } from './rules'; import { ValidationMessageProvider } from './validation-messages'; /** * Validates. @@ -40,8 +39,8 @@ export var StandardValidator = (function (_super) { var errors = []; // rules specified? if (!rules) { - // no. locate the rules via metadata. - rules = metadata.get(metadataKey, object); + // no. locate the rules via metadata. + rules = Rules.get(object); } // any rules? if (!rules) { diff --git a/dist/native-modules/implementation/validation-parser.js b/dist/native-modules/implementation/validation-parser.js index 58d4bdba..3dea660e 100644 --- a/dist/native-modules/implementation/validation-parser.js +++ b/dist/native-modules/implementation/validation-parser.js @@ -46,7 +46,8 @@ export var ValidationParser = (function () { else { accessor = this.getAccessorExpression(property); } - if (accessor instanceof AccessMember && accessor.object instanceof AccessScope) { + if (accessor instanceof AccessScope + || accessor instanceof AccessMember && accessor.object instanceof AccessScope) { return { name: accessor.name, displayName: null diff --git a/dist/native-modules/implementation/validation-rules.d.ts b/dist/native-modules/implementation/validation-rules.d.ts index 80df6d2e..c810e395 100644 --- a/dist/native-modules/implementation/validation-rules.d.ts +++ b/dist/native-modules/implementation/validation-rules.d.ts @@ -221,4 +221,9 @@ export declare class ValidationRules { * @param tag The tag to search for. */ static taggedRules(rules: Rule[], tag: string): Rule[]; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target: any): void; } diff --git a/dist/native-modules/implementation/validation-rules.js b/dist/native-modules/implementation/validation-rules.js index 39388961..8b57c735 100644 --- a/dist/native-modules/implementation/validation-rules.js +++ b/dist/native-modules/implementation/validation-rules.js @@ -1,6 +1,5 @@ -import { metadata } from 'aurelia-metadata'; import { isString } from './util'; -import { metadataKey } from './metadata-key'; +import { Rules } from './rules'; import { validationMessages } from './validation-messages'; /** * Part of the fluent rule API. Enables customizing property rules. @@ -303,10 +302,7 @@ export var FluentEnsure = (function () { * @param target A class or object. */ FluentEnsure.prototype.on = function (target) { - if (target instanceof Function) { - target = target.prototype; - } - metadata.define(metadataKey, this.rules, target); + Rules.set(target, this.rules); return this; }; FluentEnsure.prototype.assertInitialized = function () { @@ -358,5 +354,12 @@ export var ValidationRules = (function () { ValidationRules.taggedRules = function (rules, tag) { return rules.filter(function (r) { return r.tag === tag; }); }; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + ValidationRules.off = function (target) { + Rules.unset(target); + }; return ValidationRules; }()); diff --git a/dist/system/aurelia-validation.d.ts b/dist/system/aurelia-validation.d.ts index b84c411d..b73b53e1 100644 --- a/dist/system/aurelia-validation.d.ts +++ b/dist/system/aurelia-validation.d.ts @@ -7,8 +7,8 @@ export * from './validation-errors-custom-attribute'; export * from './validation-renderer-custom-attribute'; export * from './validation-renderer'; export * from './validator'; -export * from './implementation/metadata-key'; export * from './implementation/rule'; +export * from './implementation/rules'; export * from './implementation/standard-validator'; export * from './implementation/validation-messages'; export * from './implementation/validation-parser'; diff --git a/dist/system/aurelia-validation.js b/dist/system/aurelia-validation.js index 39a08731..641a117a 100644 --- a/dist/system/aurelia-validation.js +++ b/dist/system/aurelia-validation.js @@ -1,5 +1,5 @@ // Exports -System.register(['./validate-binding-behavior', './validate-trigger', './validation-controller', './validation-controller-factory', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validator', './implementation/metadata-key', './implementation/standard-validator', './implementation/validation-messages', './implementation/validation-parser', './implementation/validation-rules'], function(exports_1, context_1) { +System.register(['./validate-binding-behavior', './validate-trigger', './validation-controller', './validation-controller-factory', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validator', './implementation/rules', './implementation/standard-validator', './implementation/validation-messages', './implementation/validation-parser', './implementation/validation-rules'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var validator_1, standard_validator_1, validation_parser_1, validation_rules_1; @@ -60,8 +60,8 @@ System.register(['./validate-binding-behavior', './validate-trigger', './validat exportStar_1(validator_2_1); validator_1 = validator_2_1; }, - function (metadata_key_1_1) { - exportStar_1(metadata_key_1_1); + function (rules_1_1) { + exportStar_1(rules_1_1); }, function (standard_validator_2_1) { exportStar_1(standard_validator_2_1); diff --git a/dist/system/implementation/metadata-key.d.ts b/dist/system/implementation/metadata-key.d.ts deleted file mode 100644 index 36a6a5c6..00000000 --- a/dist/system/implementation/metadata-key.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const metadataKey: string; diff --git a/dist/system/implementation/metadata-key.js b/dist/system/implementation/metadata-key.js deleted file mode 100644 index e0cf92d1..00000000 --- a/dist/system/implementation/metadata-key.js +++ /dev/null @@ -1,11 +0,0 @@ -System.register([], function(exports_1, context_1) { - "use strict"; - var __moduleName = context_1 && context_1.id; - var metadataKey; - return { - setters:[], - execute: function() { - exports_1("metadataKey", metadataKey = 'validation:rules'); - } - } -}); diff --git a/dist/system/implementation/rules.d.ts b/dist/system/implementation/rules.d.ts new file mode 100644 index 00000000..56bd6856 --- /dev/null +++ b/dist/system/implementation/rules.d.ts @@ -0,0 +1,22 @@ +import { Rule } from './rule'; +/** + * Sets, unsets and retrieves rules on an object or constructor function. + */ +export declare class Rules { + /** + * The name of the property that stores the rules. + */ + static key: string; + /** + * Applies the rules to a target. + */ + static set(target: any, rules: Rule[]): void; + /** + * Removes rules from a target. + */ + static unset(target: any): void; + /** + * Retrieves the target's rules. + */ + static get(target: any): Rule[] | null; +} diff --git a/dist/system/implementation/rules.js b/dist/system/implementation/rules.js new file mode 100644 index 00000000..d985bf39 --- /dev/null +++ b/dist/system/implementation/rules.js @@ -0,0 +1,47 @@ +System.register([], function(exports_1, context_1) { + "use strict"; + var __moduleName = context_1 && context_1.id; + var Rules; + return { + setters:[], + execute: function() { + /** + * Sets, unsets and retrieves rules on an object or constructor function. + */ + Rules = (function () { + function Rules() { + } + /** + * Applies the rules to a target. + */ + Rules.set = function (target, rules) { + if (target instanceof Function) { + target = target.prototype; + } + Object.defineProperty(target, Rules.key, { enumerable: false, configurable: false, writable: true, value: rules }); + }; + /** + * Removes rules from a target. + */ + Rules.unset = function (target) { + if (target instanceof Function) { + target = target.prototype; + } + target[Rules.key] = null; + }; + /** + * Retrieves the target's rules. + */ + Rules.get = function (target) { + return target[Rules.key] || null; + }; + /** + * The name of the property that stores the rules. + */ + Rules.key = '__rules__'; + return Rules; + }()); + exports_1("Rules", Rules); + } + } +}); diff --git a/dist/system/implementation/standard-validator.js b/dist/system/implementation/standard-validator.js index ad75f9ff..6afe9544 100644 --- a/dist/system/implementation/standard-validator.js +++ b/dist/system/implementation/standard-validator.js @@ -1,4 +1,4 @@ -System.register(['aurelia-templating', 'aurelia-metadata', '../validator', '../validation-error', './metadata-key', './validation-messages'], function(exports_1, context_1) { +System.register(['aurelia-templating', '../validator', '../validation-error', './rules', './validation-messages'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __extends = (this && this.__extends) || function (d, b) { @@ -6,24 +6,21 @@ System.register(['aurelia-templating', 'aurelia-metadata', '../validator', '../v function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - var aurelia_templating_1, aurelia_metadata_1, validator_1, validation_error_1, metadata_key_1, validation_messages_1; + var aurelia_templating_1, validator_1, validation_error_1, rules_1, validation_messages_1; var StandardValidator; return { setters:[ function (aurelia_templating_1_1) { aurelia_templating_1 = aurelia_templating_1_1; }, - function (aurelia_metadata_1_1) { - aurelia_metadata_1 = aurelia_metadata_1_1; - }, function (validator_1_1) { validator_1 = validator_1_1; }, function (validation_error_1_1) { validation_error_1 = validation_error_1_1; }, - function (metadata_key_1_1) { - metadata_key_1 = metadata_key_1_1; + function (rules_1_1) { + rules_1 = rules_1_1; }, function (validation_messages_1_1) { validation_messages_1 = validation_messages_1_1; @@ -60,8 +57,8 @@ System.register(['aurelia-templating', 'aurelia-metadata', '../validator', '../v var errors = []; // rules specified? if (!rules) { - // no. locate the rules via metadata. - rules = aurelia_metadata_1.metadata.get(metadata_key_1.metadataKey, object); + // no. locate the rules via metadata. + rules = rules_1.Rules.get(object); } // any rules? if (!rules) { diff --git a/dist/system/implementation/validation-parser.js b/dist/system/implementation/validation-parser.js index 1a963f5b..53541429 100644 --- a/dist/system/implementation/validation-parser.js +++ b/dist/system/implementation/validation-parser.js @@ -60,7 +60,8 @@ System.register(['aurelia-binding', 'aurelia-templating', './util'], function(ex else { accessor = this.getAccessorExpression(property); } - if (accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { + if (accessor instanceof aurelia_binding_1.AccessScope + || accessor instanceof aurelia_binding_1.AccessMember && accessor.object instanceof aurelia_binding_1.AccessScope) { return { name: accessor.name, displayName: null diff --git a/dist/system/implementation/validation-rules.d.ts b/dist/system/implementation/validation-rules.d.ts index 80df6d2e..c810e395 100644 --- a/dist/system/implementation/validation-rules.d.ts +++ b/dist/system/implementation/validation-rules.d.ts @@ -221,4 +221,9 @@ export declare class ValidationRules { * @param tag The tag to search for. */ static taggedRules(rules: Rule[], tag: string): Rule[]; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + static off(target: any): void; } diff --git a/dist/system/implementation/validation-rules.js b/dist/system/implementation/validation-rules.js index 969401ac..5669343d 100644 --- a/dist/system/implementation/validation-rules.js +++ b/dist/system/implementation/validation-rules.js @@ -1,18 +1,15 @@ -System.register(['aurelia-metadata', './util', './metadata-key', './validation-messages'], function(exports_1, context_1) { +System.register(['./util', './rules', './validation-messages'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; - var aurelia_metadata_1, util_1, metadata_key_1, validation_messages_1; + var util_1, rules_1, validation_messages_1; var FluentRuleCustomizer, FluentRules, FluentEnsure, ValidationRules; return { setters:[ - function (aurelia_metadata_1_1) { - aurelia_metadata_1 = aurelia_metadata_1_1; - }, function (util_1_1) { util_1 = util_1_1; }, - function (metadata_key_1_1) { - metadata_key_1 = metadata_key_1_1; + function (rules_1_1) { + rules_1 = rules_1_1; }, function (validation_messages_1_1) { validation_messages_1 = validation_messages_1_1; @@ -321,10 +318,7 @@ System.register(['aurelia-metadata', './util', './metadata-key', './validation-m * @param target A class or object. */ FluentEnsure.prototype.on = function (target) { - if (target instanceof Function) { - target = target.prototype; - } - aurelia_metadata_1.metadata.define(metadata_key_1.metadataKey, this.rules, target); + rules_1.Rules.set(target, this.rules); return this; }; FluentEnsure.prototype.assertInitialized = function () { @@ -377,6 +371,13 @@ System.register(['aurelia-metadata', './util', './metadata-key', './validation-m ValidationRules.taggedRules = function (rules, tag) { return rules.filter(function (r) { return r.tag === tag; }); }; + /** + * Removes the rules from a class or object. + * @param target A class or object. + */ + ValidationRules.off = function (target) { + rules_1.Rules.unset(target); + }; return ValidationRules; }()); exports_1("ValidationRules", ValidationRules); diff --git a/doc/api.json b/doc/api.json index 1aaeacfb..6c6d5a07 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"name":"aurelia-validation","children":[{"id":464,"name":"AureliaValidationConfiguration","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Aurelia Validation Configuration API"},"children":[{"id":465,"name":"validatorType","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":641,"character":29}],"type":{"type":"instrinct","name":"any"}},{"id":473,"name":"apply","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":474,"name":"apply","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies the configuration."},"parameters":[{"id":475,"name":"container","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Container"}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":651,"character":13}]},{"id":466,"name":"customValidator","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":467,"name":"customValidator","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Use a custom Validator implementation."},"parameters":[{"id":468,"name":"type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":469,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":470,"name":"constructor","kind":512,"kindString":"Constructor","flags":{},"signatures":[{"id":471,"name":"new __type","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":472,"name":"args","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"instrinct","isArray":true,"name":"any"}}],"type":{"type":"reference","name":"__type","id":469}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":645,"character":31}]}],"groups":[{"title":"Constructors","kind":512,"children":[470]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":645,"character":29}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":645,"character":23}]}],"groups":[{"title":"Properties","kind":1024,"children":[465]},{"title":"Methods","kind":2048,"children":[473,466]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":640,"character":47}]},{"id":415,"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":416,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}}],"children":[{"id":419,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":420,"name":"new FluentEnsure","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":421,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":202}}],"type":{"type":"reference","name":"FluentEnsure","id":415}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":572,"character":36}]},{"id":417,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":568,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":418,"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":572,"character":13}],"type":{"type":"reference","isArray":true,"name":"Rule","id":179,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"instrinct","name":"any"}]}},{"id":431,"name":"assertInitialized","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":432,"name":"assertInitialized","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":588,"character":33}]},{"id":422,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":423,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":424,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":425,"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":197,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":578,"character":14}]},{"id":426,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":427,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":582,"character":20}]},{"id":428,"name":"on","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":429,"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":430,"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":587,"character":10}]}],"groups":[{"title":"Constructors","kind":512,"children":[419]},{"title":"Properties","kind":1024,"children":[417,418]},{"title":"Methods","kind":2048,"children":[431,422,426,428]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":567,"character":29}]},{"id":272,"name":"FluentRuleCustomizer","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Part of the fluent rule API. Enables customizing property rules."},"typeParameter":[{"id":273,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":274,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"indexSignature":[{"id":320,"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":279,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":280,"name":"new FluentRuleCustomizer","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":281,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RuleProperty","id":175}},{"id":282,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":283,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":284,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":285,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":286,"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":406,"character":54}]}}},{"id":287,"name":"config","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Object"}},{"id":288,"name":"fluentEnsure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentEnsure","id":415,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}},{"id":289,"name":"fluentRules","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}},{"id":290,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":202}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":405,"character":21}]},{"id":275,"name":"fluentEnsure","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":402,"character":28}],"type":{"type":"instrinct","name":"any"}},{"id":276,"name":"fluentRules","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":403,"character":27}],"type":{"type":"instrinct","name":"any"}},{"id":277,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":404,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":315,"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":440,"character":16}],"type":{"type":"instrinct","name":"unknown"},"defaultValue":" rules"},{"id":278,"name":"rule","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":405,"character":20}],"type":{"type":"instrinct","name":"any"}},{"id":316,"name":"Rule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":317,"name":"Rule","kind":4096,"kindString":"Call signature","flags":{},"typeParameter":[{"id":318,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":319,"name":"any","kind":131072,"kindString":"Type parameter","flags":{}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":440,"character":28}]},{"id":341,"name":"email","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":342,"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":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":474,"character":13}]},{"id":306,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":307,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":308,"name":"TValue2","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":309,"name":"subject","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reflection","declaration":{"id":310,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":311,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":312,"name":"model","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"typeParameter","name":"TValue2"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":430,"character":41}]}}]}}],"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue2"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":430,"character":14}]},{"id":313,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":314,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":436,"character":20}]},{"id":338,"name":"matches","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":339,"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":340,"name":"regex","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RegExp"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":469,"character":15}]},{"id":352,"name":"maxItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":353,"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":354,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":494,"character":16}]},{"id":346,"name":"maxLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":347,"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":348,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":484,"character":17}]},{"id":349,"name":"minItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":350,"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":351,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":489,"character":16}]},{"id":343,"name":"minLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":344,"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":345,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":479,"character":17}]},{"id":321,"name":"on","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":322,"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":323,"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":415,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":445,"character":10}]},{"id":336,"name":"required","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":337,"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":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":463,"character":16}]},{"id":324,"name":"satisfies","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":325,"name":"satisfies","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies an ad-hoc rule function to the ensured property or object."},"parameters":[{"id":326,"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":327,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":328,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":329,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":330,"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":452,"character":28}]}}},{"id":331,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":452,"character":17}]},{"id":332,"name":"satisfiesRule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":333,"name":"satisfiesRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies a rule by name."},"parameters":[{"id":334,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the custom or standard rule."},"type":{"type":"instrinct","name":"string"}},{"id":335,"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":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":458,"character":21}]},{"id":303,"name":"tag","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":304,"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":305,"name":"tag","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":425,"character":11}]},{"id":297,"name":"when","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":298,"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":299,"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":300,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":301,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":302,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"instrinct","name":"boolean"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":420,"character":23}]}}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":420,"character":12}]},{"id":294,"name":"withMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":295,"name":"withMessage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Specifies rule's validation message."},"parameters":[{"id":296,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":414,"character":19}]},{"id":291,"name":"withMessageKey","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":292,"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":293,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":410,"character":22}]}],"groups":[{"title":"Constructors","kind":512,"children":[279]},{"title":"Properties","kind":1024,"children":[275,276,277,315,278]},{"title":"Methods","kind":2048,"children":[316,341,306,313,338,352,346,349,343,321,336,324,332,303,297,294,291]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":401,"character":37}]},{"id":355,"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":356,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":357,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"children":[{"id":376,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":377,"name":"new FluentRules","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":378,"name":"fluentEnsure","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"FluentEnsure","id":415,"typeArguments":[{"type":"typeParameter","name":"TObject"}]}},{"id":379,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":202}},{"id":380,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RuleProperty","id":175}}],"type":{"type":"reference","name":"FluentRules","id":355}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":508,"character":10}]},{"id":358,"name":"fluentEnsure","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":500,"character":28}],"type":{"type":"instrinct","name":"any"}},{"id":359,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":501,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":360,"name":"property","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":502,"character":24}],"type":{"type":"instrinct","name":"any"}},{"id":361,"name":"customRules","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":503,"character":26}],"type":{"type":"reflection","declaration":{"id":362,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"indexSignature":[{"id":363,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":364,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reflection","declaration":{"id":365,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":372,"name":"argsToConfig","kind":32,"kindString":"Variable","flags":{"isOptional":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":506,"character":28}],"type":{"type":"reflection","declaration":{"id":373,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":374,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":375,"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":506,"character":30}]}}},{"id":366,"name":"condition","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":505,"character":25}],"type":{"type":"reflection","declaration":{"id":367,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":368,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":369,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":370,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":371,"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":505,"character":26}]}}}],"groups":[{"title":"Variables","kind":32,"children":[372,366]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":504,"character":27}]}}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":503,"character":27}]}}},{"id":381,"name":"displayName","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":382,"name":"displayName","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Sets the display name of the ensured property."},"parameters":[{"id":383,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":513,"character":19}]},{"id":401,"name":"email","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":402,"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":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":542,"character":13}]},{"id":398,"name":"matches","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":399,"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":400,"name":"regex","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"RegExp"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":537,"character":15}]},{"id":412,"name":"maxItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":413,"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":414,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":562,"character":16}]},{"id":406,"name":"maxLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":407,"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":408,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":552,"character":17}]},{"id":409,"name":"minItems","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":410,"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":411,"name":"count","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":557,"character":16}]},{"id":403,"name":"minLength","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":404,"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":405,"name":"length","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"number"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":547,"character":17}]},{"id":396,"name":"required","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":397,"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":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":531,"character":16}]},{"id":384,"name":"satisfies","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":385,"name":"satisfies","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies an ad-hoc rule function to the ensured property or object."},"parameters":[{"id":386,"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":387,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":388,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":389,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TValue"}},{"id":390,"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":520,"character":28}]}}},{"id":391,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"reference","name":"FluentRuleCustomizer","id":272,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":520,"character":17}]},{"id":392,"name":"satisfiesRule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":393,"name":"satisfiesRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Applies a rule by name."},"parameters":[{"id":394,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the custom or standard rule."},"type":{"type":"instrinct","name":"string"}},{"id":395,"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":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":526,"character":21}]}],"groups":[{"title":"Constructors","kind":512,"children":[376]},{"title":"Properties","kind":1024,"children":[358,359,360,361]},{"title":"Methods","kind":2048,"children":[381,401,398,412,406,409,403,396,384,392]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":499,"character":28}]},{"id":245,"name":"StandardValidator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Validates.\nResponsible for validating objects and properties."},"children":[{"id":249,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":250,"name":"new StandardValidator","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":251,"name":"messageProvider","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationMessageProvider","id":233}},{"id":252,"name":"resources","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ViewResources"}}],"type":{"type":"reference","name":"StandardValidator","id":245}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":376,"character":32}]},{"id":248,"name":"lookupFunctions","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":376,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":247,"name":"messageProvider","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":375,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":246,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":374,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"any"}},{"id":253,"name":"getMessage","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":254,"name":"getMessage","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":255,"name":"rule","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":256,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":257,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":378,"character":26}]},{"id":258,"name":"validate","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":259,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":260,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":261,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":262,"name":"rules","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":379,"character":24}]},{"id":268,"name":"validateObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":269,"name":"validateObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates all rules for specified object and it's properties."},"parameters":[{"id":270,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":271,"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":394,"character":22}],"overwrites":{"type":"reference","name":"Validator.validateObject","id":21}},{"id":263,"name":"validateProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":264,"name":"validateProperty","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates the specified property."},"parameters":[{"id":265,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The object to validate."},"type":{"type":"instrinct","name":"any"}},{"id":266,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the property to validate."},"type":{"type":"instrinct","name":"string"}},{"id":267,"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":387,"character":24}],"overwrites":{"type":"reference","name":"Validator.validateProperty","id":16}}],"groups":[{"title":"Constructors","kind":512,"children":[249]},{"title":"Properties","kind":1024,"children":[248,247,246]},{"title":"Methods","kind":2048,"children":[253,258,268,263]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":373,"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":233,"name":"ValidationMessageProvider","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Retrieves validation messages and property display names."},"children":[{"id":236,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":237,"name":"new ValidationMessageProvider","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":238,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":202}}],"type":{"type":"reference","name":"ValidationMessageProvider","id":233}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":350,"character":49}]},{"id":234,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":349,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":235,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":350,"character":21}],"type":{"type":"reference","isArray":true,"name":"ValidationParser","id":202}},{"id":242,"name":"computeDisplayName","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":243,"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":244,"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":363,"character":26}]},{"id":239,"name":"getMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":240,"name":"getMessage","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns a message binding expression that corresponds to the key."},"parameters":[{"id":241,"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":356,"character":18}]}],"groups":[{"title":"Constructors","kind":512,"children":[236]},{"title":"Properties","kind":1024,"children":[234,235]},{"title":"Methods","kind":2048,"children":[242,239]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":348,"character":42}]},{"id":202,"name":"ValidationParser","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":209,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":210,"name":"new ValidationParser","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":211,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Parser"}},{"id":212,"name":"bindinqLanguage","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"BindingLanguage"}}],"type":{"type":"reference","name":"ValidationParser","id":202}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":328,"character":36}]},{"id":204,"name":"bindinqLanguage","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":324,"character":31}],"type":{"type":"instrinct","name":"any"}},{"id":206,"name":"emptyStringExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":326,"character":37}],"type":{"type":"instrinct","name":"any"}},{"id":207,"name":"nullExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":327,"character":30}],"type":{"type":"instrinct","name":"any"}},{"id":203,"name":"parser","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":323,"character":22}],"type":{"type":"instrinct","name":"any"}},{"id":208,"name":"undefinedExpression","kind":1024,"kindString":"Property","flags":{"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":328,"character":35}],"type":{"type":"instrinct","name":"any"}},{"id":205,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":325,"character":21}],"type":{"type":"instrinct","isArray":true,"name":"any"}},{"id":213,"name":"coalesce","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":214,"name":"coalesce","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":215,"name":"part","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":330,"character":24}]},{"id":222,"name":"getAccessorExpression","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":223,"name":"getAccessorExpression","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":224,"name":"f","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":333,"character":37}]},{"id":219,"name":"getFunctionBody","kind":2048,"kindString":"Method","flags":{"isPrivate":true,"isExported":true},"signatures":[{"id":220,"name":"getFunctionBody","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":221,"name":"f","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":332,"character":31}]},{"id":216,"name":"parseMessage","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":217,"name":"parseMessage","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":218,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Expression"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":331,"character":20}]},{"id":225,"name":"parseProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":226,"name":"parseProperty","kind":4096,"kindString":"Call signature","flags":{},"typeParameter":[{"id":227,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":228,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":229,"name":"property","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":"PropertyAccessor","id":197,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"RuleProperty","id":175}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":334,"character":21}]}],"groups":[{"title":"Constructors","kind":512,"children":[209]},{"title":"Properties","kind":1024,"children":[204,206,207,203,208,205]},{"title":"Methods","kind":2048,"children":[213,222,219,216,225]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":322,"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":433,"name":"ValidationRules","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Fluent rule definition API."},"children":[{"id":434,"name":"parser","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isPrivate":true,"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":594,"character":29}],"type":{"type":"instrinct","name":"any"}},{"id":446,"name":"customRule","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":447,"name":"customRule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Defines a custom rule."},"parameters":[{"id":448,"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":449,"name":"condition","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The rule function."},"type":{"type":"reflection","declaration":{"id":450,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":451,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":452,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":453,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":454,"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":612,"character":50}]}}},{"id":455,"name":"message","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The message expression"},"type":{"type":"instrinct","name":"string"}},{"id":456,"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":457,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":458,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":459,"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":612,"character":156}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":612,"character":25}]},{"id":438,"name":"ensure","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":439,"name":"ensure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Target a property with validation rules."},"typeParameter":[{"id":440,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":441,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"parameters":[{"id":442,"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":197,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}]}}],"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TValue"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":600,"character":21}]},{"id":443,"name":"ensureObject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":444,"name":"ensureObject","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Targets an object with validation rules."},"typeParameter":[{"id":445,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}}],"type":{"type":"reference","name":"FluentRules","id":355,"typeArguments":[{"type":"typeParameter","name":"TObject"},{"type":"typeParameter","name":"TObject"}]}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":604,"character":27}]},{"id":435,"name":"initialize","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":436,"name":"initialize","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":437,"name":"parser","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationParser","id":202}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":595,"character":25}]},{"id":460,"name":"taggedRules","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":461,"name":"taggedRules","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns rules with the matching tag."},"parameters":[{"id":462,"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":463,"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":618,"character":26}]}],"groups":[{"title":"Properties","kind":1024,"children":[434]},{"title":"Methods","kind":2048,"children":[446,438,443,435,460]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":593,"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":245}]},{"id":197,"name":"PropertyAccessor","kind":256,"kindString":"Interface","flags":{"isExported":true},"typeParameter":[{"id":198,"name":"TObject","kind":131072,"kindString":"Type parameter","flags":{}},{"id":199,"name":"TValue","kind":131072,"kindString":"Type parameter","flags":{}}],"signatures":[{"id":200,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":201,"name":"object","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"typeParameter","name":"TObject"}}],"type":{"type":"typeParameter","name":"TValue"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":319,"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":305,"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":305,"character":18}]}}},{"id":188,"name":"config","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":306,"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":311,"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":310,"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":309,"character":16},{"fileName":"aurelia-validation.d.ts","line":311,"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":304,"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":312,"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":307,"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":307,"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":303,"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":301,"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":297,"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":297,"character":27},{"fileName":"aurelia-validation.d.ts","line":301,"character":34}],"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Properties","kind":1024,"children":[178,176,177]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":293,"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":230,"name":"ValidationMessages","kind":256,"kindString":"Interface","flags":{"isExported":true},"indexSignature":[{"id":231,"name":"__index","kind":8192,"kindString":"Index signature","flags":{},"parameters":[{"id":232,"name":"key","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":338,"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":488,"name":"metadataKey","kind":32,"kindString":"Variable","flags":{"isExported":true},"sources":[{"fileName":"aurelia-validation.d.ts","line":291,"character":28}],"type":{"type":"instrinct","name":"string"}},{"id":476,"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":477,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":478,"name":"blur","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":50,"character":12}],"type":{"type":"instrinct","name":"string"}},{"id":479,"name":"change","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":51,"character":14}],"type":{"type":"instrinct","name":"string"}},{"id":480,"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":[478,479,480]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":49,"character":33}]}}},{"id":492,"name":"validationMessages","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Dictionary of validation messages. [messageKey]: messageExpression"},"sources":[{"fileName":"aurelia-validation.d.ts","line":344,"character":35}],"type":{"type":"reference","name":"ValidationMessages","id":230}},{"id":493,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":494,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Configures the plugin."},"parameters":[{"id":495,"name":"frameworkConfig","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":496,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":497,"name":"container","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":657,"character":17}],"type":{"type":"reference","name":"Container"}},{"id":498,"name":"globalResources","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":658,"character":23}],"type":{"type":"reflection","declaration":{"id":499,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":500,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":501,"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":658,"character":24}]}}}],"groups":[{"title":"Variables","kind":32,"children":[497,498]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":656,"character":46}]}}},{"id":502,"name":"callback","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reflection","declaration":{"id":503,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":504,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":505,"name":"config","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"AureliaValidationConfiguration","id":464}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":659,"character":17}]}}}],"type":{"type":"instrinct","name":"void"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":656,"character":29}]},{"id":481,"name":"getPropertyInfo","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":482,"name":"getPropertyInfo","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Retrieves the object and property name for the specified expression."},"parameters":[{"id":483,"name":"expression","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The expression"},"type":{"type":"reference","name":"Expression"}},{"id":484,"name":"source","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The scope\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reflection","declaration":{"id":485,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"children":[{"id":486,"name":"object","kind":32,"kindString":"Variable","flags":{},"sources":[{"fileName":"aurelia-validation.d.ts","line":61,"character":14}],"type":{"type":"instrinct","name":"any"}},{"id":487,"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":[486,487]}],"sources":[{"fileName":"aurelia-validation.d.ts","line":60,"character":73}]}}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":60,"character":35}]},{"id":489,"name":"isString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":490,"name":"isString","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":491,"name":"value","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"boolean"}}],"sources":[{"fileName":"aurelia-validation.d.ts","line":315,"character":28}]}],"groups":[{"title":"Classes","kind":128,"children":[464,415,272,355,245,107,39,126,2,139,233,202,163,433,15]},{"title":"Interfaces","kind":256,"children":[197,25,28,136,179,175,35,230,31]},{"title":"Variables","kind":32,"children":[488,476,492]},{"title":"Functions","kind":64,"children":[493,481,489]}]} +{"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":"instrinct","name":"any"}}],"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":"instrinct","name":"any"}}],"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 e73db287..da406059 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.12.0", + "version": "0.12.1", "description": "Validation for Aurelia applications", "keywords": [ "aurelia",