diff --git a/dist/amd/index.js b/dist/amd/index.js index 15e1d266..2cea7d26 100644 --- a/dist/amd/index.js +++ b/dist/amd/index.js @@ -5,7 +5,7 @@ define(['exports', './aurelia-validation'], function (exports, _aureliaValidatio value: true }); Object.keys(_aureliaValidation).forEach(function (key) { - if (key === "default") return; + if (key === "default" || key === "__esModule") return; Object.defineProperty(exports, key, { enumerable: true, get: function () { diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js index 0a2a8c3f..26cae30e 100644 --- a/dist/commonjs/index.js +++ b/dist/commonjs/index.js @@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { var _aureliaValidation = require('./aurelia-validation'); Object.keys(_aureliaValidation).forEach(function (key) { - if (key === "default") return; + if (key === "default" || key === "__esModule") return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { diff --git a/dist/system/aurelia-validation.js b/dist/system/aurelia-validation.js index a439b2ac..ef93578e 100644 --- a/dist/system/aurelia-validation.js +++ b/dist/system/aurelia-validation.js @@ -3,6 +3,12 @@ System.register(['./validate-binding-behavior', './validate-trigger', './validation-controller', './validation-error', './validation-errors-custom-attribute', './validation-renderer-custom-attribute', './validation-renderer', './validator'], function (_export, _context) { "use strict"; + function configure(config) { + config.globalResources('./validate-binding-behavior', './validation-errors-custom-attribute', './validation-renderer-custom-attribute'); + } + + _export('configure', configure); + return { setters: [function (_validateBindingBehavior) { var _exportObj = {}; @@ -45,12 +51,6 @@ System.register(['./validate-binding-behavior', './validate-trigger', './validat _export(_exportObj8); }], - execute: function () { - function configure(config) { - config.globalResources('./validate-binding-behavior', './validation-errors-custom-attribute', './validation-renderer-custom-attribute'); - } - - _export('configure', configure); - } + execute: function () {} }; }); \ No newline at end of file diff --git a/dist/system/index.js b/dist/system/index.js index c49108cb..85178048 100644 --- a/dist/system/index.js +++ b/dist/system/index.js @@ -8,7 +8,7 @@ System.register(['./aurelia-validation'], function (_export, _context) { var _exportObj = {}; for (var _key in _aureliaValidation) { - if (_key !== "default") _exportObj[_key] = _aureliaValidation[_key]; + if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaValidation[_key]; } _export(_exportObj); diff --git a/dist/system/property-info.js b/dist/system/property-info.js index 134eb9c0..4c12d037 100644 --- a/dist/system/property-info.js +++ b/dist/system/property-info.js @@ -18,6 +18,32 @@ System.register(['aurelia-binding'], function (_export, _context) { throw new Error('The \'' + objectExpression + '\' part of \'' + expression + '\' evaluates to ' + value + ' instead of an object.'); } + function getPropertyInfo(expression, source) { + var originalExpression = expression; + while (expression instanceof BindingBehavior || expression instanceof ValueConverter) { + expression = expression.expression; + } + + var object = void 0; + var property = void 0; + if (expression instanceof AccessScope) { + object = source.bindingContext; + property = expression.name; + } else if (expression instanceof AccessMember) { + object = getObject(originalExpression, expression.object, source); + property = expression.name; + } else if (expression instanceof AccessKeyed) { + object = getObject(originalExpression, expression.object, source); + property = expression.key.evaluate(source); + } else { + throw new Error('Expression \'' + originalExpression + '\' is not compatible with the validate binding-behavior.'); + } + + return { object: object, property: property }; + } + + _export('getPropertyInfo', getPropertyInfo); + return { setters: [function (_aureliaBinding) { AccessMember = _aureliaBinding.AccessMember; @@ -32,31 +58,6 @@ System.register(['aurelia-binding'], function (_export, _context) { } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; - function getPropertyInfo(expression, source) { - var originalExpression = expression; - while (expression instanceof BindingBehavior || expression instanceof ValueConverter) { - expression = expression.expression; - } - - var object = void 0; - var property = void 0; - if (expression instanceof AccessScope) { - object = source.bindingContext; - property = expression.name; - } else if (expression instanceof AccessMember) { - object = getObject(originalExpression, expression.object, source); - property = expression.name; - } else if (expression instanceof AccessKeyed) { - object = getObject(originalExpression, expression.object, source); - property = expression.key.evaluate(source); - } else { - throw new Error('Expression \'' + originalExpression + '\' is not compatible with the validate binding-behavior.'); - } - - return { object: object, property: property }; - } - - _export('getPropertyInfo', getPropertyInfo); } }; }); \ No newline at end of file diff --git a/doc/api.json b/doc/api.json index 034621fe..fc7a233a 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"name":"aurelia-validation","children":[{"id":76,"name":"ValidateBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":77,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":78,"name":"new ValidateBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":79,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidateBindingBehavior","id":76}}]},{"id":84,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":85,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":86,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":87,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":88,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":80,"name":"getTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":81,"name":"getTarget","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":82,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":83,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":89,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":90,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":91,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":92,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[77]},{"title":"Methods","kind":2048,"children":[84,80,89]}]},{"id":32,"name":"ValidationController","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":36,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":37,"name":"new ValidationController","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":38,"name":"validator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationController","id":32}}]},{"id":33,"name":"bindings","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":34,"name":"renderers","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":35,"name":"validateTrigger","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":57,"name":"_renderError","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":58,"name":"_renderError","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":59,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":60,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":73,"name":"_resetBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":74,"name":"_resetBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Resets and unrenders errors for a particular binding."},"parameters":[{"id":75,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":61,"name":"_unrenderError","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":62,"name":"_unrenderError","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":63,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":64,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":65,"name":"_updateErrors","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":66,"name":"_updateErrors","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":67,"name":"errors","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":68,"name":"newErrors","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":69,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":70,"name":"_validateBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":71,"name":"_validateBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates and renders errors for a particular binding."},"parameters":[{"id":72,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":39,"name":"addRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"addRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a renderer."},"parameters":[{"id":41,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":2}}],"type":{"type":"instrinct","name":"any"}}]},{"id":45,"name":"registerBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":46,"name":"registerBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Registers a binding with the controller."},"parameters":[{"id":47,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding instance."},"type":{"type":"instrinct","name":"any"}},{"id":48,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The DOM element."},"type":{"type":"instrinct","name":"any"}},{"id":49,"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":"any"}}]},{"id":42,"name":"removeRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":43,"name":"removeRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes a renderer."},"parameters":[{"id":44,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":2}}],"type":{"type":"instrinct","name":"any"}}]},{"id":55,"name":"reset","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"reset","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Resets all renderers (clears all the validation errors)."},"type":{"type":"instrinct","name":"any"}}]},{"id":50,"name":"unregisterBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":51,"name":"unregisterBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unregisters a binding with the controller."},"parameters":[{"id":52,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding instance.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":53,"name":"validate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":54,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates all bindings and renders any validation errors."},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[36]},{"title":"Properties","kind":1024,"children":[33,34,35]},{"title":"Methods","kind":2048,"children":[57,73,61,65,70,39,45,42,55,50,53]}]},{"id":11,"name":"ValidationError","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":16,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":17,"name":"new ValidationError","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":18,"name":"rule","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":19,"name":"message","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":20,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":21,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationError","id":11}}]},{"id":13,"name":"message","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The error message."},"type":{"type":"instrinct","name":"string"}},{"id":14,"name":"object","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The object associated with the error."},"type":{"type":"instrinct","name":"any"}},{"id":15,"name":"propertyName","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The property associated with the error. May be null."},"type":{"type":"instrinct","name":"string"}},{"id":12,"name":"rule","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The rule associated with the error. Validator implementation specific.\nCan be considered a unique key."},"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Constructors","kind":512,"children":[16]},{"title":"Properties","kind":1024,"children":[13,14,15,12]}]},{"id":93,"name":"ValidationErrorsCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":95,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":96,"name":"new ValidationErrorsCustomAttribute","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":97,"name":"boundaryElement","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":98,"name":"controllerAccessor","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationErrorsCustomAttribute","id":93}}]},{"id":94,"name":"errors","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":109,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":110,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":101,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":102,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":103,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":104,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":99,"name":"sort","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":100,"name":"sort","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":111,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":112,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":105,"name":"unrender","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":106,"name":"unrender","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":107,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":108,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[95]},{"title":"Properties","kind":1024,"children":[94]},{"title":"Methods","kind":2048,"children":[109,101,99,111,105]}]},{"id":113,"name":"ValidationRendererCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":117,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":118,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":114,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":115,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":116,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":119,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":120,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[117,114,119]}]},{"id":22,"name":"Validator","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":28,"name":"validateObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":29,"name":"validateObject","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":30,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":31,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","isArray":true,"name":"ValidationError","id":11}}]},{"id":23,"name":"validateProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":24,"name":"validateProperty","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":26,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":27,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","isArray":true,"name":"ValidationError","id":11}}]}],"groups":[{"title":"Methods","kind":2048,"children":[28,23]}]},{"id":2,"name":"ValidationRenderer","kind":256,"kindString":"Interface","flags":{"isExported":true},"children":[{"id":3,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"error","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationError","id":11}},{"id":6,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Element"}}],"type":{"type":"instrinct","name":"void"}}]},{"id":7,"name":"unrender","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"unrender","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":9,"name":"error","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationError","id":11}},{"id":10,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Element"}}],"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[3,7]}]},{"id":121,"name":"validateTrigger","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Validation triggers."},"type":{"type":"instrinct","name":"any"}},{"id":126,"name":"validationRenderer","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Decorator: Indicates that the decorated class/object is a validation-renderer."},"type":{"type":"reference","name":"Function"}},{"id":122,"name":"getPropertyInfo","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":123,"name":"getPropertyInfo","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":124,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":125,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Classes","kind":128,"children":[76,32,11,93,113,22]},{"title":"Interfaces","kind":256,"children":[2]},{"title":"Variables","kind":32,"children":[121,126]},{"title":"Functions","kind":64,"children":[122]}]} \ No newline at end of file +{"name":"aurelia-validation","children":[{"id":57,"name":"ValidateBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":58,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":59,"name":"new ValidateBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":60,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidateBindingBehavior","id":57}}]},{"id":65,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":66,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":67,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":68,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":69,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":61,"name":"getTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":62,"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":63,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":64,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":70,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":71,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":72,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":73,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[58]},{"title":"Methods","kind":2048,"children":[65,61,70]}]},{"id":32,"name":"ValidationController","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":36,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":37,"name":"new ValidationController","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":38,"name":"validator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationController","id":32}}]},{"id":33,"name":"bindings","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":34,"name":"renderers","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":35,"name":"validateTrigger","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":39,"name":"addRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"addRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a renderer."},"parameters":[{"id":41,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":2}}],"type":{"type":"instrinct","name":"any"}}]},{"id":45,"name":"registerBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":46,"name":"registerBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Registers a binding with the controller."},"parameters":[{"id":47,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding instance."},"type":{"type":"instrinct","name":"any"}},{"id":48,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The DOM element."},"type":{"type":"instrinct","name":"any"}},{"id":49,"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":"any"}}]},{"id":42,"name":"removeRenderer","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":43,"name":"removeRenderer","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes a renderer."},"parameters":[{"id":44,"name":"renderer","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The renderer.\n"},"type":{"type":"reference","name":"ValidationRenderer","id":2}}],"type":{"type":"instrinct","name":"any"}}]},{"id":55,"name":"reset","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"reset","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Resets all renderers (clears all the validation errors)."},"type":{"type":"instrinct","name":"any"}}]},{"id":50,"name":"unregisterBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":51,"name":"unregisterBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unregisters a binding with the controller."},"parameters":[{"id":52,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding instance.\n"},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":53,"name":"validate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":54,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Validates all bindings and renders any validation errors."},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[36]},{"title":"Properties","kind":1024,"children":[33,34,35]},{"title":"Methods","kind":2048,"children":[39,45,42,55,50,53]}]},{"id":11,"name":"ValidationError","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":16,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":17,"name":"new ValidationError","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":18,"name":"rule","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":19,"name":"message","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":20,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":21,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationError","id":11}}]},{"id":13,"name":"message","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The error message."},"type":{"type":"instrinct","name":"string"}},{"id":14,"name":"object","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The object associated with the error."},"type":{"type":"instrinct","name":"any"}},{"id":15,"name":"propertyName","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The property associated with the error. May be null."},"type":{"type":"instrinct","name":"string"}},{"id":12,"name":"rule","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The rule associated with the error. Validator implementation specific.\nCan be considered a unique key."},"type":{"type":"instrinct","name":"any"}}],"groups":[{"title":"Constructors","kind":512,"children":[16]},{"title":"Properties","kind":1024,"children":[13,14,15,12]}]},{"id":74,"name":"ValidationErrorsCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":76,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":77,"name":"new ValidationErrorsCustomAttribute","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":78,"name":"boundaryElement","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":79,"name":"controllerAccessor","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","name":"ValidationErrorsCustomAttribute","id":74}}]},{"id":75,"name":"errors","kind":1024,"kindString":"Property","flags":{"isExported":true},"type":{"type":"instrinct","name":"any"}},{"id":90,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":91,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":82,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":83,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":84,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":85,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":80,"name":"sort","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":81,"name":"sort","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":92,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":93,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":86,"name":"unrender","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":87,"name":"unrender","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":88,"name":"error","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":89,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[76]},{"title":"Properties","kind":1024,"children":[75]},{"title":"Methods","kind":2048,"children":[90,82,80,92,86]}]},{"id":94,"name":"ValidationRendererCustomAttribute","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":98,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":99,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]},{"id":95,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":96,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":97,"name":"view","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":100,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":101,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[98,95,100]}]},{"id":22,"name":"Validator","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":28,"name":"validateObject","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":29,"name":"validateObject","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":30,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":31,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","isArray":true,"name":"ValidationError","id":11}}]},{"id":23,"name":"validateProperty","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":24,"name":"validateProperty","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"object","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":26,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":27,"name":"rules","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"reference","isArray":true,"name":"ValidationError","id":11}}]}],"groups":[{"title":"Methods","kind":2048,"children":[28,23]}]},{"id":2,"name":"ValidationRenderer","kind":256,"kindString":"Interface","flags":{"isExported":true},"children":[{"id":3,"name":"render","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"render","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"error","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationError","id":11}},{"id":6,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Element"}}],"type":{"type":"instrinct","name":"void"}}]},{"id":7,"name":"unrender","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"unrender","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":9,"name":"error","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"ValidationError","id":11}},{"id":10,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Element"}}],"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[3,7]}]},{"id":102,"name":"validateTrigger","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Validation triggers."},"type":{"type":"instrinct","name":"any"}},{"id":107,"name":"validationRenderer","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Decorator: Indicates that the decorated class/object is a validation-renderer."},"type":{"type":"reference","name":"Function"}},{"id":103,"name":"getPropertyInfo","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":104,"name":"getPropertyInfo","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":105,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}},{"id":106,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Classes","kind":128,"children":[57,32,11,74,94,22]},{"title":"Interfaces","kind":256,"children":[2]},{"title":"Variables","kind":32,"children":[102,107]},{"title":"Functions","kind":64,"children":[103]}]} \ No newline at end of file