From a191f25ef32ce04982096a93c3d4f91000798024 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Wed, 15 Jun 2016 22:58:38 -0400 Subject: [PATCH] chore(all): prepare release 0.9.1 --- bower.json | 2 +- dist/amd/validate-binding-behavior.js | 2 +- dist/amd/validation-controller.js | 24 +- .../amd/validation-errors-custom-attribute.js | 4 - dist/aurelia-validation.d.ts | 7 + dist/aurelia-validation.js | 22 +- dist/commonjs/validate-binding-behavior.js | 2 +- dist/commonjs/validation-controller.js | 24 +- .../validation-errors-custom-attribute.js | 4 - dist/es2015/validate-binding-behavior.js | 2 +- dist/es2015/validation-controller.js | 11 +- .../validation-errors-custom-attribute.js | 4 - .../validate-binding-behavior.js | 2 +- dist/native-modules/validation-controller.js | 24 +- .../validation-errors-custom-attribute.js | 4 - dist/system/validate-binding-behavior.js | 2 +- dist/system/validation-controller.js | 24 +- .../validation-errors-custom-attribute.js | 4 - dist/temp/aurelia-validation.js | 30 +- doc/api.json | 4229 +---------------- package.json | 2 +- 21 files changed, 93 insertions(+), 4336 deletions(-) diff --git a/bower.json b/bower.json index f86dcf71..6230f41c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.9.0", + "version": "0.9.1", "description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", "keywords": [ "aurelia", diff --git a/dist/amd/validate-binding-behavior.js b/dist/amd/validate-binding-behavior.js index 2f87882b..2647c86f 100644 --- a/dist/amd/validate-binding-behavior.js +++ b/dist/amd/validate-binding-behavior.js @@ -37,7 +37,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-task-queue', './vali var target = this.getTarget(binding, source); - var controller = source.container.get(_aureliaDependencyInjection.Optional.of(_validationController.ValidationController)); + var controller = source.container.get(_aureliaDependencyInjection.Optional.of(_validationController.ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } diff --git a/dist/amd/validation-controller.js b/dist/amd/validation-controller.js index 13227c4a..95b5f471 100644 --- a/dist/amd/validation-controller.js +++ b/dist/amd/validation-controller.js @@ -22,7 +22,7 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr } ValidationController.prototype.addRenderer = function addRenderer(renderer) { - for (var _iterator = this.bindings, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + for (var _iterator = this.bindings.values(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { @@ -35,11 +35,8 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr } var _ref2 = _ref; - var binding = _ref2[0]; - var _ref2$ = _ref2[1]; - var target = _ref2$.target; - var rules = _ref2$.rules; - var errors = _ref2$.errors; + var target = _ref2.target; + var errors = _ref2.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); @@ -49,7 +46,7 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr }; ValidationController.prototype.removeRenderer = function removeRenderer(renderer) { - for (var _iterator2 = this.bindings, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + for (var _iterator2 = this.bindings.values(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref3; if (_isArray2) { @@ -62,11 +59,8 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr } var _ref4 = _ref3; - var binding = _ref4[0]; - var _ref4$ = _ref4[1]; - var target = _ref4$.target; - var rules = _ref4$.rules; - var errors = _ref4$.errors; + var target = _ref4.target; + var errors = _ref4.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); @@ -82,6 +76,11 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr this.bindings.set(binding, { target: target, rules: rules, errors: errors }); }; + ValidationController.prototype.unregisterBinding = function unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + }; + ValidationController.prototype.validate = function validate() { var errors = []; for (var _iterator3 = this.bindings.keys(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { @@ -192,7 +191,6 @@ define(['exports', 'aurelia-dependency-injection', './validator', './validate-tr var _bindings$get2 = this.bindings.get(binding); var target = _bindings$get2.target; - var rules = _bindings$get2.rules; var errors = _bindings$get2.errors; this._updateErrors(errors, [], target); diff --git a/dist/amd/validation-errors-custom-attribute.js b/dist/amd/validation-errors-custom-attribute.js index 4ec19b19..7393f3a0 100644 --- a/dist/amd/validation-errors-custom-attribute.js +++ b/dist/amd/validation-errors-custom-attribute.js @@ -40,10 +40,6 @@ define(['exports', 'aurelia-binding', 'aurelia-dependency-injection', 'aurelia-t }; ValidationErrorsCustomAttribute.prototype.unrender = function unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - var index = this.errors.findIndex(function (x) { return x.error === error; }); diff --git a/dist/aurelia-validation.d.ts b/dist/aurelia-validation.d.ts index df4a020f..838c2381 100644 --- a/dist/aurelia-validation.d.ts +++ b/dist/aurelia-validation.d.ts @@ -84,10 +84,17 @@ export declare class ValidationController { /** * Registers a binding with the controller. * @param binding The binding instance. + * @param target The DOM element. * @param rules (optional) rules associated with the binding. Validator implementation specific. */ registerBinding(binding?: any, target?: any, rules?: any): any; + /** + * Unregisters a binding with the controller. + * @param binding The binding instance. + */ + unregisterBinding(binding?: any): any; + /** * Validates all bindings and renders any validation errors. */ diff --git a/dist/aurelia-validation.js b/dist/aurelia-validation.js index 36628423..8cc268cf 100644 --- a/dist/aurelia-validation.js +++ b/dist/aurelia-validation.js @@ -138,7 +138,7 @@ export class ValidationController { * @param renderer The renderer. */ addRenderer(renderer: ValidationRenderer) { - for (let [binding, { target, rules, errors }] of this.bindings) { + for (let { target, errors } of this.bindings.values()) { for (let i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); } @@ -151,7 +151,7 @@ export class ValidationController { * @param renderer The renderer. */ removeRenderer(renderer: ValidationRenderer) { - for (let [binding, { target, rules, errors }] of this.bindings) { + for (let { target, errors } of this.bindings.values()) { for (let i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); } @@ -162,6 +162,7 @@ export class ValidationController { /** * Registers a binding with the controller. * @param binding The binding instance. + * @param target The DOM element. * @param rules (optional) rules associated with the binding. Validator implementation specific. */ registerBinding(binding, target, rules = null) { @@ -169,6 +170,15 @@ export class ValidationController { this.bindings.set(binding, { target, rules, errors }); } + /** + * Unregisters a binding with the controller. + * @param binding The binding instance. + */ + unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + } + /** * Validates all bindings and renders any validation errors. */ @@ -247,7 +257,7 @@ export class ValidationController { * Resets and unrenders errors for a particular binding. */ _resetBinding(binding) { - const { target, rules, errors } = this.bindings.get(binding); + const { target, errors } = this.bindings.get(binding); this._updateErrors(errors, [], target); } } @@ -278,7 +288,7 @@ export class ValidateBindingBehavior { const target = this.getTarget(binding, source); // locate the controller. - const controller = source.container.get(Optional.of(ValidationController)); + const controller = source.container.get(Optional.of(ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } @@ -359,10 +369,6 @@ export class ValidationErrorsCustomAttribute { } unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - const index = this.errors.findIndex(x => x.error === error); if (index === -1) { return; diff --git a/dist/commonjs/validate-binding-behavior.js b/dist/commonjs/validate-binding-behavior.js index 7009d271..52e036dc 100644 --- a/dist/commonjs/validate-binding-behavior.js +++ b/dist/commonjs/validate-binding-behavior.js @@ -44,7 +44,7 @@ var ValidateBindingBehavior = exports.ValidateBindingBehavior = (_dec = (0, _aur var target = this.getTarget(binding, source); - var controller = source.container.get(_aureliaDependencyInjection.Optional.of(_validationController.ValidationController)); + var controller = source.container.get(_aureliaDependencyInjection.Optional.of(_validationController.ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } diff --git a/dist/commonjs/validation-controller.js b/dist/commonjs/validation-controller.js index 44e16533..0e1077ee 100644 --- a/dist/commonjs/validation-controller.js +++ b/dist/commonjs/validation-controller.js @@ -29,7 +29,7 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } ValidationController.prototype.addRenderer = function addRenderer(renderer) { - for (var _iterator = this.bindings, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + for (var _iterator = this.bindings.values(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { @@ -42,11 +42,8 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } var _ref2 = _ref; - var binding = _ref2[0]; - var _ref2$ = _ref2[1]; - var target = _ref2$.target; - var rules = _ref2$.rules; - var errors = _ref2$.errors; + var target = _ref2.target; + var errors = _ref2.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); @@ -56,7 +53,7 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe }; ValidationController.prototype.removeRenderer = function removeRenderer(renderer) { - for (var _iterator2 = this.bindings, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + for (var _iterator2 = this.bindings.values(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref3; if (_isArray2) { @@ -69,11 +66,8 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } var _ref4 = _ref3; - var binding = _ref4[0]; - var _ref4$ = _ref4[1]; - var target = _ref4$.target; - var rules = _ref4$.rules; - var errors = _ref4$.errors; + var target = _ref4.target; + var errors = _ref4.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); @@ -89,6 +83,11 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe this.bindings.set(binding, { target: target, rules: rules, errors: errors }); }; + ValidationController.prototype.unregisterBinding = function unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + }; + ValidationController.prototype.validate = function validate() { var errors = []; for (var _iterator3 = this.bindings.keys(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { @@ -199,7 +198,6 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe var _bindings$get2 = this.bindings.get(binding); var target = _bindings$get2.target; - var rules = _bindings$get2.rules; var errors = _bindings$get2.errors; this._updateErrors(errors, [], target); diff --git a/dist/commonjs/validation-errors-custom-attribute.js b/dist/commonjs/validation-errors-custom-attribute.js index b1c812e4..c57ce697 100644 --- a/dist/commonjs/validation-errors-custom-attribute.js +++ b/dist/commonjs/validation-errors-custom-attribute.js @@ -49,10 +49,6 @@ var ValidationErrorsCustomAttribute = exports.ValidationErrorsCustomAttribute = }; ValidationErrorsCustomAttribute.prototype.unrender = function unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - var index = this.errors.findIndex(function (x) { return x.error === error; }); diff --git a/dist/es2015/validate-binding-behavior.js b/dist/es2015/validate-binding-behavior.js index 4f84a467..e8665bc4 100644 --- a/dist/es2015/validate-binding-behavior.js +++ b/dist/es2015/validate-binding-behavior.js @@ -28,7 +28,7 @@ export let ValidateBindingBehavior = (_dec = inject(TaskQueue), _dec(_class = cl bind(binding, source, rules) { const target = this.getTarget(binding, source); - const controller = source.container.get(Optional.of(ValidationController)); + const controller = source.container.get(Optional.of(ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } diff --git a/dist/es2015/validation-controller.js b/dist/es2015/validation-controller.js index 57d3226b..424eaea9 100644 --- a/dist/es2015/validation-controller.js +++ b/dist/es2015/validation-controller.js @@ -16,7 +16,7 @@ export let ValidationController = (_dec = inject(Validator), _dec(_class = class } addRenderer(renderer) { - for (let [binding, { target, rules, errors }] of this.bindings) { + for (let { target, errors } of this.bindings.values()) { for (let i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); } @@ -25,7 +25,7 @@ export let ValidationController = (_dec = inject(Validator), _dec(_class = class } removeRenderer(renderer) { - for (let [binding, { target, rules, errors }] of this.bindings) { + for (let { target, errors } of this.bindings.values()) { for (let i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); } @@ -38,6 +38,11 @@ export let ValidationController = (_dec = inject(Validator), _dec(_class = class this.bindings.set(binding, { target, rules, errors }); } + unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + } + validate() { const errors = []; for (let binding of this.bindings.keys()) { @@ -99,7 +104,7 @@ export let ValidationController = (_dec = inject(Validator), _dec(_class = class } _resetBinding(binding) { - const { target, rules, errors } = this.bindings.get(binding); + const { target, errors } = this.bindings.get(binding); this._updateErrors(errors, [], target); } }) || _class); \ No newline at end of file diff --git a/dist/es2015/validation-errors-custom-attribute.js b/dist/es2015/validation-errors-custom-attribute.js index c6ea4d24..1a334197 100644 --- a/dist/es2015/validation-errors-custom-attribute.js +++ b/dist/es2015/validation-errors-custom-attribute.js @@ -35,10 +35,6 @@ export let ValidationErrorsCustomAttribute = (_dec = customAttribute('validation } unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - const index = this.errors.findIndex(x => x.error === error); if (index === -1) { return; diff --git a/dist/native-modules/validate-binding-behavior.js b/dist/native-modules/validate-binding-behavior.js index 97551df0..f4011602 100644 --- a/dist/native-modules/validate-binding-behavior.js +++ b/dist/native-modules/validate-binding-behavior.js @@ -34,7 +34,7 @@ export var ValidateBindingBehavior = (_dec = inject(TaskQueue), _dec(_class = fu var target = this.getTarget(binding, source); - var controller = source.container.get(Optional.of(ValidationController)); + var controller = source.container.get(Optional.of(ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } diff --git a/dist/native-modules/validation-controller.js b/dist/native-modules/validation-controller.js index dcf7dad7..9841de1f 100644 --- a/dist/native-modules/validation-controller.js +++ b/dist/native-modules/validation-controller.js @@ -19,7 +19,7 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct } ValidationController.prototype.addRenderer = function addRenderer(renderer) { - for (var _iterator = this.bindings, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + for (var _iterator = this.bindings.values(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { @@ -32,11 +32,8 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct } var _ref2 = _ref; - var binding = _ref2[0]; - var _ref2$ = _ref2[1]; - var target = _ref2$.target; - var rules = _ref2$.rules; - var errors = _ref2$.errors; + var target = _ref2.target; + var errors = _ref2.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); @@ -46,7 +43,7 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct }; ValidationController.prototype.removeRenderer = function removeRenderer(renderer) { - for (var _iterator2 = this.bindings, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + for (var _iterator2 = this.bindings.values(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref3; if (_isArray2) { @@ -59,11 +56,8 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct } var _ref4 = _ref3; - var binding = _ref4[0]; - var _ref4$ = _ref4[1]; - var target = _ref4$.target; - var rules = _ref4$.rules; - var errors = _ref4$.errors; + var target = _ref4.target; + var errors = _ref4.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); @@ -79,6 +73,11 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct this.bindings.set(binding, { target: target, rules: rules, errors: errors }); }; + ValidationController.prototype.unregisterBinding = function unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + }; + ValidationController.prototype.validate = function validate() { var errors = []; for (var _iterator3 = this.bindings.keys(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { @@ -189,7 +188,6 @@ export var ValidationController = (_dec = inject(Validator), _dec(_class = funct var _bindings$get2 = this.bindings.get(binding); var target = _bindings$get2.target; - var rules = _bindings$get2.rules; var errors = _bindings$get2.errors; this._updateErrors(errors, [], target); diff --git a/dist/native-modules/validation-errors-custom-attribute.js b/dist/native-modules/validation-errors-custom-attribute.js index 3703d2ec..1acf0b7b 100644 --- a/dist/native-modules/validation-errors-custom-attribute.js +++ b/dist/native-modules/validation-errors-custom-attribute.js @@ -38,10 +38,6 @@ export var ValidationErrorsCustomAttribute = (_dec = customAttribute('validation }; ValidationErrorsCustomAttribute.prototype.unrender = function unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - var index = this.errors.findIndex(function (x) { return x.error === error; }); diff --git a/dist/system/validate-binding-behavior.js b/dist/system/validate-binding-behavior.js index 3080a85a..ad9cd2de 100644 --- a/dist/system/validate-binding-behavior.js +++ b/dist/system/validate-binding-behavior.js @@ -46,7 +46,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-task-queue', './valida var target = this.getTarget(binding, source); - var controller = source.container.get(Optional.of(ValidationController)); + var controller = source.container.get(Optional.of(ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } diff --git a/dist/system/validation-controller.js b/dist/system/validation-controller.js index edd7923f..ddab7f51 100644 --- a/dist/system/validation-controller.js +++ b/dist/system/validation-controller.js @@ -30,7 +30,7 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig } ValidationController.prototype.addRenderer = function addRenderer(renderer) { - for (var _iterator = this.bindings, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + for (var _iterator = this.bindings.values(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { @@ -43,11 +43,8 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig } var _ref2 = _ref; - var binding = _ref2[0]; - var _ref2$ = _ref2[1]; - var target = _ref2$.target; - var rules = _ref2$.rules; - var errors = _ref2$.errors; + var target = _ref2.target; + var errors = _ref2.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], target); @@ -57,7 +54,7 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig }; ValidationController.prototype.removeRenderer = function removeRenderer(renderer) { - for (var _iterator2 = this.bindings, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + for (var _iterator2 = this.bindings.values(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref3; if (_isArray2) { @@ -70,11 +67,8 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig } var _ref4 = _ref3; - var binding = _ref4[0]; - var _ref4$ = _ref4[1]; - var target = _ref4$.target; - var rules = _ref4$.rules; - var errors = _ref4$.errors; + var target = _ref4.target; + var errors = _ref4.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], target); @@ -90,6 +84,11 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig this.bindings.set(binding, { target: target, rules: rules, errors: errors }); }; + ValidationController.prototype.unregisterBinding = function unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + }; + ValidationController.prototype.validate = function validate() { var errors = []; for (var _iterator3 = this.bindings.keys(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { @@ -200,7 +199,6 @@ System.register(['aurelia-dependency-injection', './validator', './validate-trig var _bindings$get2 = this.bindings.get(binding); var target = _bindings$get2.target; - var rules = _bindings$get2.rules; var errors = _bindings$get2.errors; this._updateErrors(errors, [], target); diff --git a/dist/system/validation-errors-custom-attribute.js b/dist/system/validation-errors-custom-attribute.js index df1e1ed0..860f3edc 100644 --- a/dist/system/validation-errors-custom-attribute.js +++ b/dist/system/validation-errors-custom-attribute.js @@ -51,10 +51,6 @@ System.register(['aurelia-binding', 'aurelia-dependency-injection', 'aurelia-tem }; ValidationErrorsCustomAttribute.prototype.unrender = function unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - var index = this.errors.findIndex(function (x) { return x.error === error; }); diff --git a/dist/temp/aurelia-validation.js b/dist/temp/aurelia-validation.js index 72a2de55..c78b61fa 100644 --- a/dist/temp/aurelia-validation.js +++ b/dist/temp/aurelia-validation.js @@ -123,7 +123,7 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } ValidationController.prototype.addRenderer = function addRenderer(renderer) { - for (var _iterator = this.bindings, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { + for (var _iterator = this.bindings.values(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { var _ref; if (_isArray) { @@ -136,11 +136,8 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } var _ref2 = _ref; - var binding = _ref2[0]; - var _ref2$ = _ref2[1]; - var _target = _ref2$.target; - var rules = _ref2$.rules; - var errors = _ref2$.errors; + var _target = _ref2.target; + var errors = _ref2.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.render(errors[i], _target); @@ -150,7 +147,7 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe }; ValidationController.prototype.removeRenderer = function removeRenderer(renderer) { - for (var _iterator2 = this.bindings, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { + for (var _iterator2 = this.bindings.values(), _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) { var _ref3; if (_isArray2) { @@ -163,11 +160,8 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe } var _ref4 = _ref3; - var binding = _ref4[0]; - var _ref4$ = _ref4[1]; - var _target2 = _ref4$.target; - var rules = _ref4$.rules; - var errors = _ref4$.errors; + var _target2 = _ref4.target; + var errors = _ref4.errors; for (var i = 0, ii = errors.length; i < ii; i++) { renderer.unrender(errors[i], _target2); @@ -183,6 +177,11 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe this.bindings.set(binding, { target: target, rules: rules, errors: errors }); }; + ValidationController.prototype.unregisterBinding = function unregisterBinding(binding) { + this._resetBinding(binding); + this.bindings.delete(binding); + }; + ValidationController.prototype.validate = function validate() { var errors = []; for (var _iterator3 = this.bindings.keys(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { @@ -293,7 +292,6 @@ var ValidationController = exports.ValidationController = (_dec = (0, _aureliaDe var _bindings$get2 = this.bindings.get(binding); var target = _bindings$get2.target; - var rules = _bindings$get2.rules; var errors = _bindings$get2.errors; this._updateErrors(errors, [], target); @@ -328,7 +326,7 @@ var ValidateBindingBehavior = exports.ValidateBindingBehavior = (_dec2 = (0, _au var target = this.getTarget(binding, source); - var controller = source.container.get(_aureliaDependencyInjection.Optional.of(ValidationController)); + var controller = source.container.get(_aureliaDependencyInjection.Optional.of(ValidationController, true)); if (controller === null) { throw new Error('A ValidationController has not been registered.'); } @@ -410,10 +408,6 @@ var ValidationErrorsCustomAttribute = exports.ValidationErrorsCustomAttribute = }; ValidationErrorsCustomAttribute.prototype.unrender = function unrender(error, target) { - if (!target || !(this.boundaryElement === target || this.boundaryElement.contains(target))) { - return; - } - var index = this.errors.findIndex(function (x) { return x.error === error; }); diff --git a/doc/api.json b/doc/api.json index e2a104c2..034621fe 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1,4228 +1 @@ -{ - "id": 2, - "name": "\"aurelia-binding\"", - "kind": 2, - "kindString": "Module", - "flags": {}, - "comment": { - "shortText": "A modern databinding library for JavaScript and HTML." - }, - "children": [ - { - "id": 78, - "name": "bindingMode", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Describes the direction of the data flow in a binding." - }, - "children": [ - { - "id": 79, - "name": "oneTime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Updates the binding target once. This is essentially a simpler form of one-way binding\nthat provides better performance in cases where the source value does not change." - }, - "defaultValue": "0" - }, - { - "id": 80, - "name": "oneWay", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Updates the binding target (target) property when the binding source (source) changes.\nThis type of binding is appropriate if the element being bound is implicitly read-only.\nIf there is no need to monitor the changes of the target property, using the OneWay\nbinding mode avoids the overhead of the two-way binding mode." - }, - "defaultValue": "1" - }, - { - "id": 81, - "name": "twoWay", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Causes changes to either the source property or the target property to automatically update\nthe other. This type of binding is appropriate for editable forms or other fully-interactive\nUI scenarios." - }, - "defaultValue": "2" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 79, - 80, - 81 - ] - } - ] - }, - { - "id": 181, - "name": "BindingBehavior", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A binding behavior expression." - }, - "children": [ - { - "id": 186, - "name": "assign", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 187, - "name": "assign", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 188, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 189, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 190, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.assign", - "id": 173 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.assign", - "id": 172 - } - }, - { - "id": 191, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 192, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 193, - "name": "binding", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Binding", - "id": 143, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 194, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.connect", - "id": 178 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.connect", - "id": 177 - } - }, - { - "id": 182, - "name": "evaluate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 183, - "name": "evaluate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 184, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 185, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.evaluate", - "id": 169 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.evaluate", - "id": 168 - } - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 186, - 191, - 182 - ] - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "Expression", - "id": 167 - } - ] - }, - { - "id": 27, - "name": "BindingBehaviorResource", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A BindingBehavior resource." - }, - "children": [ - { - "id": 31, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 32, - "name": "new BindingBehaviorResource", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 33, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "BindingBehaviorResource", - "id": 27, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 34, - "name": "initialize", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 35, - "name": "initialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 36, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Container", - "id": 434, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 37, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 38, - "name": "register", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 39, - "name": "register", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 40, - "name": "registry", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 41, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 28, - "name": "convention", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 29, - "name": "convention", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 30, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "BindingBehaviorResource", - "id": 27, - "moduleName": "\"aurelia-binding\"" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 31 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 34, - 38, - 28 - ] - } - ] - }, - { - "id": 233, - "name": "BindingEngine", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Binding system API." - }, - "children": [ - { - "id": 244, - "name": "collectionObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 245, - "name": "collectionObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for collection mutation." - }, - "parameters": [ - { - "id": 246, - "name": "collection", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "Array", - "typeArguments": [ - { - "type": "instrinct", - "name": "any" - } - ] - }, - { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "instrinct", - "name": "any" - }, - { - "type": "instrinct", - "name": "any" - } - ] - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "CollectionObserver", - "id": 71, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 234, - "name": "createBindingExpression", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 235, - "name": "createBindingExpression", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Creates a binding expression for the specified target property and source expression." - }, - "parameters": [ - { - "id": 236, - "name": "targetProperty", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The target attribute, eg \"value\" / \"checked\" / \"textcontent\" / \"data-foo\"." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 237, - "name": "sourceExpression", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A javascript expression accessing the source property." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 238, - "name": "mode", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "The directionality of the binding." - }, - "type": { - "type": "reference", - "name": "bindingMode", - "id": 78, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 239, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "Lookup functions for value converter and binding behavior resources.\n" - }, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "reference", - "name": "BindingExpression", - "id": 163, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 247, - "name": "expressionObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 248, - "name": "expressionObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for a javascript expression that accesses a property on the binding context." - }, - "parameters": [ - { - "id": 249, - "name": "bindingContext", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The binding context (view-model)" - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 250, - "name": "expression", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A javascript expression accessing the source property.\n" - }, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "PropertyObserver", - "id": 63, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 251, - "name": "parseExpression", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 252, - "name": "parseExpression", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Parses a string containing a javascript expression and returns a data-binding specialized AST. Memoized." - }, - "parameters": [ - { - "id": 253, - "name": "expression", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Expression", - "id": 167, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 240, - "name": "propertyObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 241, - "name": "propertyObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for property changes." - }, - "parameters": [ - { - "id": 242, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 243, - "name": "propertyName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "PropertyObserver", - "id": 63, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 254, - "name": "registerAdapter", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 255, - "name": "registerAdapter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Registers an adapter that provides an efficient property observeration strategy for\nproperties that would otherwise require dirty-checking." - }, - "parameters": [ - { - "id": 256, - "name": "adapter", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "ObjectObservationAdapter", - "id": 213, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 244, - 234, - 247, - 251, - 240, - 254 - ] - } - ] - }, - { - "id": 42, - "name": "EventManager", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Subscribes to appropriate element events based on the element property\nbeing observed for changes.\nThis is an internal API and is subject to change without notice in future releases." - }, - "children": [ - { - "id": 52, - "name": "addEventListener", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 53, - "name": "addEventListener", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribes to specified event on the target element.", - "returns": "function wich removes event listener.\n" - }, - "parameters": [ - { - "id": 54, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Target element." - }, - "type": { - "type": "reference", - "name": "Element" - } - }, - { - "id": 55, - "name": "targetEvent", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Name of event to subscribe." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 56, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Event listener callback." - }, - "type": { - "type": "reflection", - "declaration": { - "id": 57, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 58, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 59, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Event" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - } - }, - { - "id": 60, - "name": "delegate", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "True to use event delegation mechanism." - }, - "type": { - "type": "instrinct", - "name": "boolean" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 61, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 62, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 43, - "name": "registerElementConfig", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 44, - "name": "registerElementConfig", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 45, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 46, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 48, - "name": "properties", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 49, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 50, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 51, - "name": "s", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "isArray": true, - "name": "string" - } - } - ] - } - } - }, - { - "id": 47, - "name": "tagName", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 48, - 47 - ] - } - ] - } - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 52, - 43 - ] - } - ] - }, - { - "id": 219, - "name": "ObserverLocator", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Internal object observation API. Locates observers for properties, arrays and maps using a variety of strategies." - }, - "children": [ - { - "id": 224, - "name": "addAdapter", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 225, - "name": "addAdapter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Adds a property observation adapter." - }, - "parameters": [ - { - "id": 226, - "name": "adapter", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "ObjectObservationAdapter", - "id": 213, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 227, - "name": "getArrayObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 228, - "name": "getArrayObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for array mutation." - }, - "parameters": [ - { - "id": 229, - "name": "array", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Array", - "typeArguments": [ - { - "type": "instrinct", - "name": "any" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "InternalCollectionObserver", - "id": 124, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 230, - "name": "getMapObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 231, - "name": "getMapObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for map mutation." - }, - "parameters": [ - { - "id": 232, - "name": "map", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "instrinct", - "name": "any" - }, - { - "type": "instrinct", - "name": "any" - } - ] - } - } - ], - "type": { - "type": "reference", - "name": "InternalCollectionObserver", - "id": 124, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 220, - "name": "getObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 221, - "name": "getObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets an observer for property changes." - }, - "parameters": [ - { - "id": 222, - "name": "obj", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 223, - "name": "propertyName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "InternalPropertyObserver", - "id": 98, - "moduleName": "\"aurelia-binding\"" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 224, - 227, - 230, - 220 - ] - } - ] - }, - { - "id": 209, - "name": "Parser", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Parses strings containing javascript expressions and returns a data-binding specialized AST." - }, - "children": [ - { - "id": 210, - "name": "parse", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 211, - "name": "parse", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Parses a string containing a javascript expression and returns a data-binding specialized AST. Memoized." - }, - "parameters": [ - { - "id": 212, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Expression", - "id": 167, - "moduleName": "\"aurelia-binding\"" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 210 - ] - } - ] - }, - { - "id": 195, - "name": "ValueConverter", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A value converter expression." - }, - "children": [ - { - "id": 200, - "name": "assign", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 201, - "name": "assign", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 202, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 203, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 204, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.assign", - "id": 173 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.assign", - "id": 172 - } - }, - { - "id": 205, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 206, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 207, - "name": "binding", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Binding", - "id": 143, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 208, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.connect", - "id": 178 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.connect", - "id": 177 - } - }, - { - "id": 196, - "name": "evaluate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 197, - "name": "evaluate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 198, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - }, - { - "id": 199, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - }, - "implementationOf": { - "type": "reference", - "name": "Expression.evaluate", - "id": 169 - } - } - ], - "implementationOf": { - "type": "reference", - "name": "Expression.evaluate", - "id": 168 - } - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 200, - 205, - 196 - ] - } - ], - "implementedTypes": [ - { - "type": "reference", - "name": "Expression", - "id": 167 - } - ] - }, - { - "id": 12, - "name": "ValueConverterResource", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A ValueConverter resource." - }, - "children": [ - { - "id": 16, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 17, - "name": "new ValueConverterResource", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 18, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "ValueConverterResource", - "id": 12, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 19, - "name": "initialize", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 20, - "name": "initialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 21, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Container", - "id": 434, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 22, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 23, - "name": "register", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 24, - "name": "register", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 25, - "name": "registry", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 26, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 13, - "name": "convention", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 14, - "name": "convention", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 15, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "ValueConverterResource", - "id": 12, - "moduleName": "\"aurelia-binding\"" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 16 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 19, - 23, - 13 - ] - } - ] - }, - { - "id": 143, - "name": "Binding", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides high-level access to the definition of a binding, which connects the properties of\nbinding target objects (typically, HTML elements), and any data source" - }, - "children": [ - { - "id": 154, - "name": "callSource", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Calls the source method with the specified args object." - }, - "type": { - "type": "reflection", - "declaration": { - "id": 155, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 156, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 157, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - } - }, - { - "id": 144, - "name": "mode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The directionality of the binding." - }, - "type": { - "type": "reference", - "name": "bindingMode", - "id": 78 - } - }, - { - "id": 145, - "name": "sourceExpression", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The expression to access/assign/connect the binding source property." - }, - "type": { - "type": "reference", - "name": "Expression", - "id": 167 - } - }, - { - "id": 150, - "name": "updateSource", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Assigns a value to the source." - }, - "type": { - "type": "reflection", - "declaration": { - "id": 151, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 152, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 153, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - }, - { - "id": 146, - "name": "updateTarget", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Assigns a value to the target." - }, - "type": { - "type": "reflection", - "declaration": { - "id": 147, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 148, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 149, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - }, - { - "id": 158, - "name": "bind", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 159, - "name": "bind", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Connects the binding to a scope." - }, - "parameters": [ - { - "id": 160, - "name": "source", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 161, - "name": "unbind", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 162, - "name": "unbind", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Disconnects the binding from a scope." - }, - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 154, - 144, - 145, - 150, - 146 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 158, - 161 - ] - } - ] - }, - { - "id": 163, - "name": "BindingExpression", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A factory for binding instances." - }, - "children": [ - { - "id": 164, - "name": "createBinding", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 165, - "name": "createBinding", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 166, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Binding", - "id": 143 - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 164 - ] - } - ] - }, - { - "id": 89, - "name": "Callable", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A callable object." - }, - "children": [ - { - "id": 90, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 91, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 92, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 93, - "name": "newValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 94, - "name": "oldValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - }, - { - "id": 95, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 96, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 97, - "name": "changeRecords", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 90 - ] - } - ] - }, - { - "id": 71, - "name": "CollectionObserver", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Observes collection mutation." - }, - "children": [ - { - "id": 72, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 73, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe to collection mutation events." - }, - "parameters": [ - { - "id": 74, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 75, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 76, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 77, - "name": "changeRecords", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reference", - "name": "Disposable", - "id": 9 - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 72 - ] - } - ] - }, - { - "id": 9, - "name": "Disposable", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides a mechanism for releasing resources." - }, - "children": [ - { - "id": 10, - "name": "dispose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 11, - "name": "dispose", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Performs tasks associated with freeing, releasing, or resetting resources." - }, - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 10 - ] - } - ] - }, - { - "id": 167, - "name": "Expression", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides the base class from which the classes that represent expression tree nodes are derived." - }, - "children": [ - { - "id": 172, - "name": "assign", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 173, - "name": "assign", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Assigns a value to the property represented by the expression." - }, - "parameters": [ - { - "id": 174, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6 - } - }, - { - "id": 175, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 176, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 177, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 178, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribes a binding instance to the property change events along the path of the expression." - }, - "parameters": [ - { - "id": 179, - "name": "binding", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Binding", - "id": 143 - } - }, - { - "id": 180, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 168, - "name": "evaluate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 169, - "name": "evaluate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Evaluates the expression using the provided scope and lookup functions." - }, - "parameters": [ - { - "id": 170, - "name": "scope", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Scope", - "id": 6 - } - }, - { - "id": 171, - "name": "lookupFunctions", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "LookupFunctions", - "id": 82 - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 172, - 177, - 168 - ] - } - ], - "implementedBy": [ - { - "type": "reference", - "name": "BindingBehavior", - "id": 181 - }, - { - "type": "reference", - "name": "ValueConverter", - "id": 195 - } - ] - }, - { - "id": 124, - "name": "InternalCollectionObserver", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Observes collection mutation." - }, - "children": [ - { - "id": 125, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 126, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe to collection mutation events with a callback function." - }, - "parameters": [ - { - "id": 127, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 128, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 129, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 130, - "name": "changeRecords", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - }, - { - "id": 131, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe a callable object to collection mutation events." - }, - "parameters": [ - { - "id": 132, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A value to be passed to the callable object's call function when collection mutation occurs." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 133, - "name": "callable", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A callable object.\n" - }, - "type": { - "type": "reference", - "name": "Callable", - "id": 89 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 134, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 135, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Unsubscribes a callback function from collection mutation changes." - }, - "parameters": [ - { - "id": 136, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 137, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 138, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 139, - "name": "changeRecords", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - }, - { - "id": 140, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Unsubscribes a callable object from collection mutation events." - }, - "parameters": [ - { - "id": 141, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A value to be passed to the callable object's call function when collection mutation occurs." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 142, - "name": "callable", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A callable object.\n" - }, - "type": { - "type": "reference", - "name": "Callable", - "id": 89 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 125, - 134 - ] - } - ] - }, - { - "id": 98, - "name": "InternalPropertyObserver", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Observes property changes." - }, - "children": [ - { - "id": 99, - "name": "getValue", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 100, - "name": "getValue", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Gets the property value." - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 101, - "name": "setValue", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 102, - "name": "setValue", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Sets the property value." - }, - "parameters": [ - { - "id": 103, - "name": "newValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 104, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 105, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe to property changes with a callback function." - }, - "parameters": [ - { - "id": 106, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 107, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 108, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 109, - "name": "newValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 110, - "name": "oldValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - }, - { - "id": 111, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe a callable object to property changes." - }, - "parameters": [ - { - "id": 112, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A value to be passed to the callable object's call function when a property change occurs." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 113, - "name": "callable", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A callable object.\n" - }, - "type": { - "type": "reference", - "name": "Callable", - "id": 89 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 114, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 115, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Unsubscribes a callback function from property changes." - }, - "parameters": [ - { - "id": 116, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 117, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 118, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 119, - "name": "newValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 120, - "name": "oldValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - }, - { - "id": 121, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Unsubscribes a callable object from property changes." - }, - "parameters": [ - { - "id": 122, - "name": "context", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A value to be passed to the callable object's call function when a property change occurs." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 123, - "name": "callable", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "A callable object.\n" - }, - "type": { - "type": "reference", - "name": "Callable", - "id": 89 - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 99, - 101, - 104, - 114 - ] - } - ] - }, - { - "id": 82, - "name": "LookupFunctions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Lookup functions for value converter and binding behavior resources." - }, - "children": [ - { - "id": 83, - "name": "bindingBehaviors", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 84, - "name": "bindingBehaviors", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 85, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 86, - "name": "valueConverters", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 87, - "name": "valueConverters", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 88, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 83, - 86 - ] - } - ] - }, - { - "id": 213, - "name": "ObjectObservationAdapter", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides efficient property observers for properties that would otherwise require dirty-checking." - }, - "children": [ - { - "id": 214, - "name": "getObserver", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 215, - "name": "getObserver", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 216, - "name": "object", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 217, - "name": "propertyName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 218, - "name": "descriptor", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "PropertyDescriptor" - } - } - ], - "type": { - "type": "reference", - "name": "InternalPropertyObserver", - "id": 98 - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 214 - ] - } - ] - }, - { - "id": 3, - "name": "OverrideContext", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The \"parallel\" or \"artificial\" aspect of the binding scope. Provides access to the parent binding\ncontext and stores contextual bindable members such as $event, $index, $odd, etc. Members on this\nobject take precedence over members of the bindingContext object." - }, - "children": [ - { - "id": 5, - "name": "bindingContext", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 4, - "name": "parentOverrideContext", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "type": { - "type": "reference", - "name": "OverrideContext", - "id": 3 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 5, - 4 - ] - } - ] - }, - { - "id": 63, - "name": "PropertyObserver", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Observes property changes." - }, - "children": [ - { - "id": 64, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 65, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Subscribe to property change events." - }, - "parameters": [ - { - "id": 66, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 67, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 68, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 69, - "name": "newValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 70, - "name": "oldValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reference", - "name": "Disposable", - "id": 9 - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 64 - ] - } - ] - }, - { - "id": 6, - "name": "Scope", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The two part binding scope. The first part is the bindingContext which represents the primary scope, typically a\nview-model instance and second the overrideContext" - }, - "children": [ - { - "id": 7, - "name": "bindingContext", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The primary aspect of the binding scope. Typically a view-model instance." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 8, - "name": "overrideContext", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The \"parallel\" or \"artificial\" aspect of the binding scope. Provides access to the parent binding\ncontext and stores contextual bindable members such as $event, $index, $odd, etc. Members on this\nobject take precedence over members of the bindingContext object." - }, - "type": { - "type": "reference", - "name": "OverrideContext", - "id": 3 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 7, - 8 - ] - } - ] - }, - { - "id": 284, - "name": "sourceContext", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A context used when invoking a binding's callable API to notify\nthe binding that the context is a \"source update\"." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 281, - "name": "bindingBehavior", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 282, - "name": "bindingBehavior", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Indicates that the decorated class is a binding behavior." - }, - "parameters": [ - { - "id": 283, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The name of the binding behavior.\n" - }, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 275, - "name": "computedFrom", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 276, - "name": "computedFrom", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Indicates that the decorated property is computed from other properties." - }, - "parameters": [ - { - "id": 277, - "name": "propertyNames", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "comment": { - "text": "The names of the properties the decorated property is computed from. Simple property names, not expressions.\n" - }, - "type": { - "type": "instrinct", - "isArray": true, - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 257, - "name": "createOverrideContext", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 258, - "name": "createOverrideContext", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Creates an overrideContext object with the supplied bindingContext and optional parent overrideContext." - }, - "parameters": [ - { - "id": 259, - "name": "bindingContext", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 260, - "name": "parentOverrideContext", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "OverrideContext", - "id": 3, - "moduleName": "\"aurelia-binding\"" - } - } - ], - "type": { - "type": "reference", - "name": "OverrideContext", - "id": 3, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 261, - "name": "createScopeForTest", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 262, - "name": "createScopeForTest", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Creates a scope object for testing purposes." - }, - "parameters": [ - { - "id": 263, - "name": "bindingContext", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 264, - "name": "parentBindingContext", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Scope", - "id": 6, - "moduleName": "\"aurelia-binding\"" - } - } - ] - }, - { - "id": 270, - "name": "declarePropertyDependencies", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 271, - "name": "declarePropertyDependencies", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Declares a property's dependencies." - }, - "parameters": [ - { - "id": 272, - "name": "ctor", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 273, - "name": "propertyName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 274, - "name": "dependencies", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "isArray": true, - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 285, - "name": "getChangeRecords", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 286, - "name": "getChangeRecords", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "An internal API used by Aurelia's array observation components." - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 267, - "name": "hasDeclaredDependencies", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 268, - "name": "hasDeclaredDependencies", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns whether a property's dependencies have been declared." - }, - "parameters": [ - { - "id": 269, - "name": "descriptor", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "PropertyDescriptor" - } - } - ], - "type": { - "type": "instrinct", - "name": "boolean" - } - } - ] - }, - { - "id": 287, - "name": "mergeSplice", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 288, - "name": "mergeSplice", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "An internal API used by Aurelia's array observation components." - }, - "parameters": [ - { - "id": 289, - "name": "splices", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 290, - "name": "index", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "number" - } - }, - { - "id": 291, - "name": "removed", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 292, - "name": "addedCount", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "number" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 293, - "name": "observable", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 294, - "name": "observable", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Specifies that a property is observable." - }, - "parameters": [ - { - "id": 295, - "name": "targetOrConfig", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "The name of the property, or a configuration object.\n" - }, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 296, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 297, - "name": "descriptor", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 265, - "name": "subscriberCollection", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 266, - "name": "subscriberCollection", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Adds efficient subscription management methods to the decorated class's prototype." - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 278, - "name": "valueConverter", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 279, - "name": "valueConverter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Indicates that the decorated class is a value converter." - }, - "parameters": [ - { - "id": 280, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The name of the value converter.\n" - }, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 4, - "children": [ - 78 - ] - }, - { - "title": "Classes", - "kind": 128, - "children": [ - 181, - 27, - 233, - 42, - 219, - 209, - 195, - 12 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 143, - 163, - 89, - 71, - 9, - 167, - 124, - 98, - 82, - 213, - 3, - 63, - 6 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 284 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 281, - 275, - 257, - 261, - 270, - 285, - 267, - 287, - 293, - 265, - 278 - ] - } - ] -} \ No newline at end of file +{"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 diff --git a/package.json b/package.json index 353ca1ae..f075fdab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.9.0", + "version": "0.9.1", "description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", "keywords": [ "aurelia",