From 2dd0266e3abd81602be00be3d4e0089c7244eb75 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Tue, 10 May 2016 15:57:55 -0400 Subject: [PATCH] chore(all): prepare release 0.8.1 --- aurelia-validation/aurelia-validation.d.ts | 23 + bower.json | 2 +- dist/amd/index.js | 8 +- dist/amd/metadata-key.js | 8 - dist/amd/validation-error.js | 4 +- dist/commonjs/index.js | 9 + dist/commonjs/metadata-key.js | 6 - dist/commonjs/validation-error.js | 4 +- dist/es2015/index.js | 1 + dist/es2015/metadata-key.js | 1 - dist/es2015/validation-error.js | 5 +- dist/system/index.js | 7 +- dist/system/metadata-key.js | 13 - dist/system/validation-error.js | 4 +- doc/CHANGELOG.md | 8 + doc/api.json | 4231 +++++++++++--------- package.json | 2 +- 17 files changed, 2508 insertions(+), 1828 deletions(-) create mode 100644 aurelia-validation/aurelia-validation.d.ts delete mode 100644 dist/amd/metadata-key.js delete mode 100644 dist/commonjs/metadata-key.js delete mode 100644 dist/es2015/metadata-key.js delete mode 100644 dist/system/metadata-key.js diff --git a/aurelia-validation/aurelia-validation.d.ts b/aurelia-validation/aurelia-validation.d.ts new file mode 100644 index 00000000..332b980f --- /dev/null +++ b/aurelia-validation/aurelia-validation.d.ts @@ -0,0 +1,23 @@ +declare module 'aurelia-validation' { + export class ValidationEngine { + static getValidationReporter(instance: any): any; + } + export class ValidationError { + message: any; + object: any; + propertyName: any; + value: any; + constructor(data: any); + } + export class ValidationReporter { + add(object: any): any; + remove(object: any): any; + subscribe(callback: any): any; + publish(errors: any): any; + destroyObserver(observer: any): any; + } + export class Validator { + validate(object: any, prop: any): any; + getProperties(): any; + } +} \ No newline at end of file diff --git a/bower.json b/bower.json index 18fb0bbf..fc022e67 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.8.0", + "version": "0.8.1", "description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", "keywords": [ "aurelia", diff --git a/dist/amd/index.js b/dist/amd/index.js index 888f7909..cb55ad9f 100644 --- a/dist/amd/index.js +++ b/dist/amd/index.js @@ -1,4 +1,4 @@ -define(['exports', './validator', './validation-reporter', './validation-engine'], function (exports, _validator, _validationReporter, _validationEngine) { +define(['exports', './validator', './validation-reporter', './validation-engine', './validation-error'], function (exports, _validator, _validationReporter, _validationEngine, _validationError) { 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -22,6 +22,12 @@ define(['exports', './validator', './validation-reporter', './validation-engine' return _validationEngine.ValidationEngine; } }); + Object.defineProperty(exports, 'ValidationError', { + enumerable: true, + get: function () { + return _validationError.ValidationError; + } + }); exports.configure = configure; function configure(config) {} }); \ No newline at end of file diff --git a/dist/amd/metadata-key.js b/dist/amd/metadata-key.js deleted file mode 100644 index 32c83223..00000000 --- a/dist/amd/metadata-key.js +++ /dev/null @@ -1,8 +0,0 @@ -define(['exports'], function (exports) { - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - var validationMetadataKey = exports.validationMetadataKey = 'aurelia:validation'; -}); \ No newline at end of file diff --git a/dist/amd/validation-error.js b/dist/amd/validation-error.js index 0995c25c..7dc724e9 100644 --- a/dist/amd/validation-error.js +++ b/dist/amd/validation-error.js @@ -11,10 +11,12 @@ define(['exports'], function (exports) { } } - var ValidationError = exports.ValidationError = function ValidationError() { + var ValidationError = exports.ValidationError = function ValidationError(data) { _classCallCheck(this, ValidationError); this.message = ''; this.propertyName = ''; + + Object.assign(this, data); }; }); \ No newline at end of file diff --git a/dist/commonjs/index.js b/dist/commonjs/index.js index 69dca1b3..7642f0e9 100644 --- a/dist/commonjs/index.js +++ b/dist/commonjs/index.js @@ -30,5 +30,14 @@ Object.defineProperty(exports, 'ValidationEngine', { return _validationEngine.ValidationEngine; } }); + +var _validationError = require('./validation-error'); + +Object.defineProperty(exports, 'ValidationError', { + enumerable: true, + get: function get() { + return _validationError.ValidationError; + } +}); exports.configure = configure; function configure(config) {} \ No newline at end of file diff --git a/dist/commonjs/metadata-key.js b/dist/commonjs/metadata-key.js deleted file mode 100644 index 19b9fb80..00000000 --- a/dist/commonjs/metadata-key.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var validationMetadataKey = exports.validationMetadataKey = 'aurelia:validation'; \ No newline at end of file diff --git a/dist/commonjs/validation-error.js b/dist/commonjs/validation-error.js index a9989455..72474223 100644 --- a/dist/commonjs/validation-error.js +++ b/dist/commonjs/validation-error.js @@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var ValidationError = exports.ValidationError = function ValidationError() { +var ValidationError = exports.ValidationError = function ValidationError(data) { _classCallCheck(this, ValidationError); this.message = ''; this.propertyName = ''; + + Object.assign(this, data); }; \ No newline at end of file diff --git a/dist/es2015/index.js b/dist/es2015/index.js index b8d85fa5..55fa73f3 100644 --- a/dist/es2015/index.js +++ b/dist/es2015/index.js @@ -1,5 +1,6 @@ export { Validator } from './validator'; export { ValidationReporter } from './validation-reporter'; export { ValidationEngine } from './validation-engine'; +export { ValidationError } from './validation-error'; export function configure(config) {} \ No newline at end of file diff --git a/dist/es2015/metadata-key.js b/dist/es2015/metadata-key.js deleted file mode 100644 index 003267cb..00000000 --- a/dist/es2015/metadata-key.js +++ /dev/null @@ -1 +0,0 @@ -export const validationMetadataKey = 'aurelia:validation'; \ No newline at end of file diff --git a/dist/es2015/validation-error.js b/dist/es2015/validation-error.js index cf38d268..b4be8810 100644 --- a/dist/es2015/validation-error.js +++ b/dist/es2015/validation-error.js @@ -1,7 +1,8 @@ export let ValidationError = class ValidationError { - constructor() { + constructor(data) { this.message = ''; this.propertyName = ''; - } + Object.assign(this, data); + } }; \ No newline at end of file diff --git a/dist/system/index.js b/dist/system/index.js index 95037b3d..1eddf3e6 100644 --- a/dist/system/index.js +++ b/dist/system/index.js @@ -1,6 +1,6 @@ 'use strict'; -System.register(['./validator', './validation-reporter', './validation-engine'], function (_export, _context) { +System.register(['./validator', './validation-reporter', './validation-engine', './validation-error'], function (_export, _context) { return { setters: [function (_validator) { var _exportObj = {}; @@ -17,6 +17,11 @@ System.register(['./validator', './validation-reporter', './validation-engine'], _exportObj3.ValidationEngine = _validationEngine.ValidationEngine; _export(_exportObj3); + }, function (_validationError) { + var _exportObj4 = {}; + _exportObj4.ValidationError = _validationError.ValidationError; + + _export(_exportObj4); }], execute: function () { function configure(config) {} diff --git a/dist/system/metadata-key.js b/dist/system/metadata-key.js deleted file mode 100644 index b5c3ecb3..00000000 --- a/dist/system/metadata-key.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -System.register([], function (_export, _context) { - var validationMetadataKey; - return { - setters: [], - execute: function () { - _export('validationMetadataKey', validationMetadataKey = 'aurelia:validation'); - - _export('validationMetadataKey', validationMetadataKey); - } - }; -}); \ No newline at end of file diff --git a/dist/system/validation-error.js b/dist/system/validation-error.js index 7bca95d2..6c58026a 100644 --- a/dist/system/validation-error.js +++ b/dist/system/validation-error.js @@ -12,11 +12,13 @@ System.register([], function (_export, _context) { return { setters: [], execute: function () { - _export('ValidationError', ValidationError = function ValidationError() { + _export('ValidationError', ValidationError = function ValidationError(data) { _classCallCheck(this, ValidationError); this.message = ''; this.propertyName = ''; + + Object.assign(this, data); }); _export('ValidationError', ValidationError); diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index fbdf49d4..354d67be 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 0.8.1 (2016-05-10) + + +#### Bug Fixes + +* **package.json:** fix dependencies ([3415f243](https://github.com/aurelia/validation/commit/3415f243b158682bbcb0b45adaac2838a536fb33)) + + ## 0.8.0 (2016-05-03) diff --git a/doc/api.json b/doc/api.json index f01b0a44..e2a104c2 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1,71 +1,163 @@ { "id": 2, - "name": "\"aurelia-dependency-injection\"", + "name": "\"aurelia-binding\"", "kind": 2, "kindString": "Module", "flags": {}, + "comment": { + "shortText": "A modern databinding library for JavaScript and HTML." + }, "children": [ { - "id": 41, - "name": "All", - "kind": 128, - "kindString": "Class", + "id": 78, + "name": "bindingMode", + "kind": 4, + "kindString": "Enumeration", "flags": { "isExported": true }, "comment": { - "shortText": "Used to allow functions/classes to specify resolution of all matches to a key." + "shortText": "Describes the direction of the data flow in a binding." }, "children": [ { - "id": 42, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "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": "Creates an instance of the All class." + "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": 43, - "name": "new All", - "kind": 16384, - "kindString": "Constructor signature", + "id": 187, + "name": "assign", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Creates an instance of the All class." - }, "parameters": [ { - "id": 44, - "name": "key", + "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": {}, - "comment": { - "shortText": "The key to lazily resolve all matches for.\n" - }, "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": "All", - "id": 41, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Expression.assign", + "id": 173 } } - ] + ], + "implementationOf": { + "type": "reference", + "name": "Expression.assign", + "id": 172 + } }, { - "id": 45, - "name": "get", + "id": 191, + "name": "connect", "kind": 2048, "kindString": "Method", "flags": { @@ -73,225 +165,188 @@ }, "signatures": [ { - "id": 46, - "name": "get", + "id": 192, + "name": "connect", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Called by the container to resolve all matching dependencies as an array of instances.", - "returns": "Returns an array of all matching instances.\n" - }, "parameters": [ { - "id": 47, - "name": "container", + "id": 193, + "name": "binding", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container to resolve from." - }, "type": { "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "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", - "isArray": true, - "name": "any" + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "Expression.connect", + "id": 178 } } - ] + ], + "implementationOf": { + "type": "reference", + "name": "Expression.connect", + "id": 177 + } }, { - "id": 48, - "name": "of", + "id": 182, + "name": "evaluate", "kind": 2048, "kindString": "Method", "flags": { - "isStatic": true, "isExported": true }, "signatures": [ { - "id": 49, - "name": "of", + "id": 183, + "name": "evaluate", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Creates an All Resolver for the supplied key.", - "returns": "Returns an instance of All for the key.\n" - }, "parameters": [ { - "id": 50, - "name": "key", + "id": 184, + "name": "scope", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key to resolve all instances for." - }, "type": { - "type": "instrinct", - "name": "any" + "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": "All", - "id": 41, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Expression.evaluate", + "id": 169 } } - ] + ], + "implementationOf": { + "type": "reference", + "name": "Expression.evaluate", + "id": 168 + } } ], "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 42 - ] - }, { "title": "Methods", "kind": 2048, "children": [ - 45, - 48 + 186, + 191, + 182 ] } + ], + "implementedTypes": [ + { + "type": "reference", + "name": "Expression", + "id": 167 + } ] }, { - "id": 137, - "name": "Container", + "id": 27, + "name": "BindingBehaviorResource", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "comment": { - "shortText": "A lightweight, extensible dependency injection container." + "shortText": "A BindingBehavior resource." }, "children": [ { - "id": 141, + "id": 31, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of Container." - }, "signatures": [ { - "id": 142, - "name": "new Container", + "id": 32, + "name": "new BindingBehaviorResource", "kind": 16384, "kindString": "Constructor signature", "flags": {}, - "comment": { - "shortText": "Creates an instance of Container." - }, "parameters": [ { - "id": 143, - "name": "configuration", + "id": 33, + "name": "name", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Provides some configuration for the new Container instance.\n" - }, + "flags": {}, "type": { - "type": "reference", - "name": "ContainerConfiguration", - "id": 26, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "string" } } ], "type": { "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "BindingBehaviorResource", + "id": 27, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 139, - "name": "parent", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The parent container in the DI hierarchy." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 140, - "name": "root", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The root container in the DI hierarchy." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 138, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "The global root Container instance. Available if makeGlobal() has been called. Aurelia Framework calls makeGlobal()." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 181, - "name": "autoRegister", + "id": 34, + "name": "initialize", "kind": 2048, "kindString": "Method", "flags": { @@ -299,40 +354,31 @@ }, "signatures": [ { - "id": 182, - "name": "autoRegister", + "id": 35, + "name": "initialize", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Registers a type (constructor function) by inspecting its registration annotations. If none are found, then the default singleton registration is used." - }, "parameters": [ { - "id": 183, - "name": "fn", + "id": 36, + "name": "container", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The constructor function to use when the dependency needs to be instantiated." - }, "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Container", + "id": 434, + "moduleName": "\"aurelia-dependency-injection\"" } }, { - "id": 184, - "name": "key", + "id": 37, + "name": "target", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function.\n" - }, + "flags": {}, "type": { "type": "instrinct", "name": "any" @@ -340,17 +386,15 @@ } ], "type": { - "type": "reference", - "name": "Resolver", - "id": 3, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] }, { - "id": 185, - "name": "autoRegisterAll", + "id": 38, + "name": "register", "kind": 2048, "kindString": "Method", "flags": { @@ -358,29 +402,33 @@ }, "signatures": [ { - "id": 186, - "name": "autoRegisterAll", + "id": 39, + "name": "register", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Registers an array of types (constructor functions) by inspecting their registration annotations. If none are found, then the default singleton registration is used." - }, "parameters": [ { - "id": 187, - "name": "fns", + "id": 40, + "name": "registry", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The constructor function to use when the dependency needs to be instantiated.\n" - }, "type": { "type": "instrinct", - "isArray": true, "name": "any" } + }, + { + "id": 41, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "string" + } } ], "type": { @@ -391,78 +439,78 @@ ] }, { - "id": 201, - "name": "createChild", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 202, - "name": "createChild", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Creates a new dependency injection container whose parent is the current container.", - "returns": "Returns a new container instance parented to this.\n" - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - } - ] - }, - { - "id": 195, - "name": "get", + "id": 28, + "name": "convention", "kind": 2048, "kindString": "Method", "flags": { + "isStatic": true, "isExported": true }, "signatures": [ { - "id": 196, - "name": "get", + "id": 29, + "name": "convention", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Resolves a single instance based on the provided key.", - "returns": "Returns the resolved instance.\n" - }, "parameters": [ { - "id": 197, - "name": "key", + "id": 30, + "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the object to resolve." - }, "type": { "type": "instrinct", - "name": "any" + "name": "string" } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "BindingBehaviorResource", + "id": 27, + "moduleName": "\"aurelia-binding\"" } } ] - }, + } + ], + "groups": [ { - "id": 198, - "name": "getAll", + "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": { @@ -470,42 +518,64 @@ }, "signatures": [ { - "id": 199, - "name": "getAll", + "id": 245, + "name": "collectionObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Resolves all instance registered under the provided key.", - "returns": "Returns an array of the resolved instances.\n" + "shortText": "Gets an observer for collection mutation." }, "parameters": [ { - "id": 200, - "name": "key", + "id": 246, + "name": "collection", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the objects to resolve." - }, "type": { - "type": "instrinct", - "name": "any" + "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": "instrinct", - "isArray": true, - "name": "any" + "type": "reference", + "name": "CollectionObserver", + "id": 71, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 191, - "name": "hasResolver", + "id": 234, + "name": "createBindingExpression", "kind": 2048, "kindString": "Method", "flags": { @@ -513,57 +583,92 @@ }, "signatures": [ { - "id": 192, - "name": "hasResolver", + "id": 235, + "name": "createBindingExpression", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Inspects the container to determine if a particular key has been registred.", - "returns": "Returns true if the key has been registred; false otherwise.\n" + "shortText": "Creates a binding expression for the specified target property and source expression." }, "parameters": [ { - "id": 193, - "name": "key", + "id": 236, + "name": "targetProperty", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function." + "text": "The target attribute, eg \"value\" / \"checked\" / \"textcontent\" / \"data-foo\"." }, "type": { "type": "instrinct", - "name": "any" + "name": "string" } }, { - "id": 194, - "name": "checkParent", + "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": "Indicates whether or not to check the parent container hierarchy." + "text": "The directionality of the binding." }, "type": { - "type": "instrinct", - "name": "boolean" + "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": "instrinct", - "name": "boolean" + "type": "reference", + "name": "BindingExpression", + "id": 163, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 203, - "name": "invoke", + "id": 247, + "name": "expressionObserver", "kind": 2048, "kindString": "Method", "flags": { @@ -571,58 +676,56 @@ }, "signatures": [ { - "id": 204, - "name": "invoke", + "id": 248, + "name": "expressionObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Invokes a function, recursively resolving its dependencies.", - "returns": "Returns the instance resulting from calling the function.\n" + "shortText": "Gets an observer for a javascript expression that accesses a property on the binding context." }, "parameters": [ { - "id": 205, - "name": "fn", + "id": 249, + "name": "bindingContext", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The function to invoke with the auto-resolved dependencies." + "text": "The binding context (view-model)" }, "type": { - "type": "reference", - "name": "Function" + "type": "instrinct", + "name": "any" } }, { - "id": 206, - "name": "dynamicDependencies", + "id": 250, + "name": "expression", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "comment": { - "text": "Additional function dependencies to use during invocation." + "text": "A javascript expression accessing the source property.\n" }, "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "name": "string" } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "PropertyObserver", + "id": 63, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 144, - "name": "makeGlobal", + "id": 251, + "name": "parseExpression", "kind": 2048, "kindString": "Method", "flags": { @@ -630,26 +733,39 @@ }, "signatures": [ { - "id": 145, - "name": "makeGlobal", + "id": 252, + "name": "parseExpression", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Makes this container instance globally reachable through Container.instance." + "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": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Expression", + "id": 167, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 173, - "name": "registerAlias", + "id": 240, + "name": "propertyObserver", "kind": 2048, "kindString": "Method", "flags": { @@ -657,41 +773,77 @@ }, "signatures": [ { - "id": 174, - "name": "registerAlias", + "id": 241, + "name": "propertyObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Registers an additional key that serves as an alias to the original DI key." + "shortText": "Gets an observer for property changes." }, "parameters": [ { - "id": 175, - "name": "originalKey", + "id": 242, + "name": "obj", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that originally identified the dependency; usually a constructor function." - }, "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Object" } }, { - "id": 176, - "name": "aliasKey", + "id": 243, + "name": "propertyName", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "An alternate key which can also be used to resolve the same dependency as the original.\n" - }, "type": { "type": "instrinct", - "name": "any" + "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\"" } } ], @@ -701,10 +853,38 @@ } } ] - }, + } + ], + "groups": [ { - "id": 164, - "name": "registerHandler", + "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": { @@ -712,93 +892,78 @@ }, "signatures": [ { - "id": 165, - "name": "registerHandler", + "id": 53, + "name": "addEventListener", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Registers a custom resolution function such that the container calls this function for each request to obtain the instance." + "shortText": "Subscribes to specified event on the target element.", + "returns": "function wich removes event listener.\n" }, "parameters": [ { - "id": 166, - "name": "key", + "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": "The key that identifies the dependency at resolution time; usually a constructor function." + "text": "Name of event to subscribe." }, "type": { "type": "instrinct", - "name": "any" + "name": "string" } }, { - "id": 167, - "name": "handler", + "id": 56, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The resolution function to use when the dependency is needed.\n" + "text": "Event listener callback." }, "type": { "type": "reflection", "declaration": { - "id": 168, + "id": 57, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 169, + "id": 58, "name": "__call", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 170, - "name": "container", + "id": 59, + "name": "event", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137 - } - }, - { - "id": 171, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 172, - "name": "resolver", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { "type": "reference", - "name": "Resolver", - "id": 3 + "name": "Event" } } ], @@ -810,75 +975,51 @@ ] } } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 152, - "name": "registerInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 153, - "name": "registerInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Registers an existing object instance with the container." - }, - "parameters": [ - { - "id": 154, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function." - }, - "type": { - "type": "instrinct", - "name": "any" - } }, { - "id": 155, - "name": "instance", + "id": 60, + "name": "delegate", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "comment": { - "text": "The instance that will be resolved when the key is matched.\n" + "text": "True to use event delegation mechanism." }, "type": { "type": "instrinct", - "name": "any" + "name": "boolean" } } ], "type": { - "type": "instrinct", - "name": "void" + "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": 177, - "name": "registerResolver", + "id": 43, + "name": "registerElementConfig", "kind": 2048, "kindString": "Method", "flags": { @@ -886,43 +1027,94 @@ }, "signatures": [ { - "id": 178, - "name": "registerResolver", + "id": 44, + "name": "registerElementConfig", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Registers a custom resolution function such that the container calls this function for each request to obtain the instance." - }, "parameters": [ { - "id": 179, - "name": "key", + "id": 45, + "name": "config", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function." - }, "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 180, - "name": "resolver", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The resolver to use when the dependency is needed.\n" - }, - "type": { - "type": "reference", - "name": "Resolver", - "id": 3, - "moduleName": "\"aurelia-dependency-injection\"" + "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 + ] + } + ] + } } } ], @@ -932,10 +1124,34 @@ } } ] - }, + } + ], + "groups": [ { - "id": 156, - "name": "registerSingleton", + "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": { @@ -943,40 +1159,26 @@ }, "signatures": [ { - "id": 157, - "name": "registerSingleton", + "id": 225, + "name": "addAdapter", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Registers a type (constructor function) such that the container always returns the same instance for each request." + "shortText": "Adds a property observation adapter." }, "parameters": [ { - "id": 158, - "name": "key", + "id": 226, + "name": "adapter", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 159, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, "type": { "type": "reference", - "name": "Function" + "name": "ObjectObservationAdapter", + "id": 213, + "moduleName": "\"aurelia-binding\"" } } ], @@ -988,8 +1190,8 @@ ] }, { - "id": 160, - "name": "registerTransient", + "id": 227, + "name": "getArrayObserver", "kind": 2048, "kindString": "Method", "flags": { @@ -997,53 +1199,45 @@ }, "signatures": [ { - "id": 161, - "name": "registerTransient", + "id": 228, + "name": "getArrayObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Registers a type (constructor function) such that the container returns a new instance for each request." + "shortText": "Gets an observer for array mutation." }, "parameters": [ { - "id": 162, - "name": "key", + "id": 229, + "name": "array", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 163, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, "type": { "type": "reference", - "name": "Function" + "name": "Array", + "typeArguments": [ + { + "type": "instrinct", + "name": "any" + } + ] } } ], "type": { - "type": "instrinct", - "name": "void" + "type": "reference", + "name": "InternalCollectionObserver", + "id": 124, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 146, - "name": "setHandlerCreatedCallback", + "id": 230, + "name": "getMapObserver", "kind": 2048, "kindString": "Method", "flags": { @@ -1051,74 +1245,49 @@ }, "signatures": [ { - "id": 147, - "name": "setHandlerCreatedCallback", + "id": 231, + "name": "getMapObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Sets an invocation handler creation callback that will be called when new InvocationsHandlers are created (called once per Function)." + "shortText": "Gets an observer for map mutation." }, "parameters": [ { - "id": 148, - "name": "onHandlerCreated", + "id": 232, + "name": "map", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The callback to be called when an InvocationsHandler is created.\n" - }, "type": { - "type": "reflection", - "declaration": { - "id": 149, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 150, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 151, - "name": "handler", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "InvocationHandler", - "id": 124 - } - } - ], - "type": { - "type": "reference", - "name": "InvocationHandler", - "id": 124 - } - } - ] - } + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "instrinct", + "name": "any" + }, + { + "type": "instrinct", + "name": "any" + } + ] } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "InternalCollectionObserver", + "id": 124, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 188, - "name": "unregister", + "id": 220, + "name": "getObserver", "kind": 2048, "kindString": "Method", "flags": { @@ -1126,140 +1295,139 @@ }, "signatures": [ { - "id": 189, - "name": "unregister", + "id": 221, + "name": "getObserver", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Unregisters based on key." + "shortText": "Gets an observer for property changes." }, "parameters": [ { - "id": 190, - "name": "key", + "id": 222, + "name": "obj", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key that identifies the dependency at resolution time; usually a constructor function.\n" - }, "type": { "type": "instrinct", "name": "any" } + }, + { + "id": 223, + "name": "propertyName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "string" + } } ], "type": { - "type": "instrinct", - "name": "void" + "type": "reference", + "name": "InternalPropertyObserver", + "id": 98, + "moduleName": "\"aurelia-binding\"" } } ] } ], "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 141 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 139, - 140, - 138 - ] - }, { "title": "Methods", "kind": 2048, "children": [ - 181, - 185, - 201, - 195, - 198, - 191, - 203, - 144, - 173, - 164, - 152, - 177, - 156, - 160, - 146, - 188 + 224, + 227, + 230, + 220 ] } ] }, { - "id": 82, - "name": "Factory", + "id": 209, + "name": "Parser", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "comment": { - "shortText": "Used to allow injecting dependencies but also passing data to the constructor." + "shortText": "Parses strings containing javascript expressions and returns a data-binding specialized AST." }, "children": [ { - "id": 83, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 210, + "name": "parse", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of the Factory class." - }, "signatures": [ { - "id": 84, - "name": "new Factory", - "kind": 16384, - "kindString": "Constructor signature", + "id": 211, + "name": "parse", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates an instance of the Factory class." + "shortText": "Parses a string containing a javascript expression and returns a data-binding specialized AST. Memoized." }, "parameters": [ { - "id": 85, - "name": "key", + "id": 212, + "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The key to resolve from the parent container.\n" - }, "type": { "type": "instrinct", - "name": "any" + "name": "string" } } ], "type": { "type": "reference", - "name": "Factory", - "id": 82, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Expression", + "id": 167, + "moduleName": "\"aurelia-binding\"" } } ] - }, + } + ], + "groups": [ { - "id": 86, - "name": "get", + "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": { @@ -1267,138 +1435,259 @@ }, "signatures": [ { - "id": 87, - "name": "get", + "id": 201, + "name": "assign", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Called by the container to pass the dependencies to the constructor.", - "returns": "Returns a function that can be invoked to resolve dependencies later, and the rest of the parameters.\n" - }, "parameters": [ { - "id": 88, - "name": "container", + "id": 202, + "name": "scope", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container to invoke the constructor with dependencies and other parameters." - }, "type": { "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "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": "any" + "name": "void" + }, + "implementationOf": { + "type": "reference", + "name": "Expression.assign", + "id": 173 } } - ] + ], + "implementationOf": { + "type": "reference", + "name": "Expression.assign", + "id": 172 + } }, { - "id": 89, - "name": "of", + "id": 205, + "name": "connect", "kind": 2048, "kindString": "Method", "flags": { - "isStatic": true, "isExported": true }, "signatures": [ { - "id": 90, - "name": "of", + "id": 206, + "name": "connect", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Creates a Factory Resolver for the supplied key.", - "returns": "Returns an instance of Factory for the key.\n" - }, "parameters": [ { - "id": 91, - "name": "key", + "id": 207, + "name": "binding", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key to resolve." - }, "type": { - "type": "instrinct", - "name": "any" + "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": "Factory", - "id": 82, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Expression.connect", + "id": 178 } } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 83 - ] + ], + "implementationOf": { + "type": "reference", + "name": "Expression.connect", + "id": 177 + } }, { - "title": "Methods", + "id": 196, + "name": "evaluate", "kind": 2048, - "children": [ - 86, - 89 - ] + "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": 92, - "name": "FactoryInvoker", + "id": 12, + "name": "ValueConverterResource", "kind": 128, "kindString": "Class", "flags": { "isExported": true }, "comment": { - "shortText": "An Invoker that is used to invoke a factory method." + "shortText": "A ValueConverter resource." }, "children": [ { - "id": 93, - "name": "instance", - "kind": 1024, - "kindString": "Property", + "id": 16, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", "flags": { - "isStatic": true, "isExported": true }, - "comment": { - "shortText": "The singleton instance of the FactoryInvoker." - }, - "type": { - "type": "reference", - "name": "FactoryInvoker", - "id": 92, - "moduleName": "\"aurelia-dependency-injection\"" - } + "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": 94, - "name": "invoke", + "id": 19, + "name": "initialize", "kind": 2048, "kindString": "Method", "flags": { @@ -1406,72 +1695,47 @@ }, "signatures": [ { - "id": 95, - "name": "invoke", + "id": 20, + "name": "initialize", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Invokes the function with the provided dependencies.", - "returns": "The result of the function invocation.\n" - }, "parameters": [ { - "id": 96, + "id": 21, "name": "container", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The calling container." - }, "type": { "type": "reference", "name": "Container", - "id": 137, + "id": 434, "moduleName": "\"aurelia-dependency-injection\"" } }, { - "id": 97, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The constructor or factory function." - }, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 98, - "name": "dependencies", + "id": 22, + "name": "target", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The dependencies of the function call." - }, "type": { "type": "instrinct", - "isArray": true, "name": "any" } } ], "type": { "type": "instrinct", - "name": "any" + "name": "void" } } ] }, { - "id": 99, - "name": "invokeWithDynamicDependencies", + "id": 23, + "name": "register", "kind": 2048, "kindString": "Method", "flags": { @@ -1479,80 +1743,76 @@ }, "signatures": [ { - "id": 100, - "name": "invokeWithDynamicDependencies", + "id": 24, + "name": "register", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Invokes the function with the provided dependencies.", - "returns": "The result of the function invocation.\n" - }, "parameters": [ { - "id": 101, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The calling container." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 102, - "name": "fn", + "id": 25, + "name": "registry", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The constructor or factory function." - }, "type": { - "type": "reference", - "name": "Function" + "type": "instrinct", + "name": "any" } }, { - "id": 103, - "name": "staticDependencies", + "id": 26, + "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The static dependencies of the function." - }, "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "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": 104, - "name": "dynamicDependencies", + "id": 15, + "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "Additional dependencies to use during invocation." - }, "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "name": "string" } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "ValueConverterResource", + "id": 12, + "moduleName": "\"aurelia-binding\"" } } ] @@ -1560,311 +1820,221 @@ ], "groups": [ { - "title": "Properties", - "kind": 1024, + "title": "Constructors", + "kind": 512, "children": [ - 93 + 16 ] }, { "title": "Methods", "kind": 2048, "children": [ - 94, - 99 + 19, + 23, + 13 ] } ] }, { - "id": 124, - "name": "InvocationHandler", - "kind": 128, - "kindString": "Class", + "id": 143, + "name": "Binding", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "Stores the information needed to invoke a function." + "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": 128, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 154, + "name": "callSource", + "kind": 1024, + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, "comment": { - "shortText": "Instantiates an InvocationDescription." + "shortText": "Calls the source method with the specified args object." }, - "signatures": [ - { - "id": 129, - "name": "new InvocationHandler", - "kind": 16384, - "kindString": "Constructor signature", + "type": { + "type": "reflection", + "declaration": { + "id": 155, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "comment": { - "shortText": "Instantiates an InvocationDescription." - }, - "parameters": [ - { - "id": 130, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The Function described by this description object." - }, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 131, - "name": "invoker", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The strategy for invoking the function." - }, - "type": { - "type": "reference", - "name": "Invoker", - "id": 8, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, + "signatures": [ { - "id": 132, - "name": "dependencies", - "kind": 32768, - "kindString": "Parameter", + "id": 156, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "The static dependencies of the function call.\n" - }, + "parameters": [ + { + "id": 157, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "any" + } + } + ], "type": { "type": "instrinct", - "isArray": true, "name": "any" } } - ], - "type": { - "type": "reference", - "name": "InvocationHandler", - "id": 124, - "moduleName": "\"aurelia-dependency-injection\"" - } + ] } - ] + } }, { - "id": 127, - "name": "dependencies", + "id": 144, + "name": "mode", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, "comment": { - "shortText": "The statically known dependencies of this function invocation." + "shortText": "The directionality of the binding." }, "type": { - "type": "instrinct", - "isArray": true, - "name": "any" + "type": "reference", + "name": "bindingMode", + "id": 78 } }, { - "id": 125, - "name": "fn", + "id": 145, + "name": "sourceExpression", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, "comment": { - "shortText": "The function to be invoked by this handler." + "shortText": "The expression to access/assign/connect the binding source property." }, "type": { "type": "reference", - "name": "Function" + "name": "Expression", + "id": 167 } }, { - "id": 126, - "name": "invoker", + "id": 150, + "name": "updateSource", "kind": 1024, "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, "comment": { - "shortText": "The invoker implementation that will be used to actually invoke the function." + "shortText": "Assigns a value to the source." }, "type": { - "type": "reference", - "name": "Invoker", - "id": 8, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 133, - "name": "invoke", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 134, - "name": "invoke", - "kind": 4096, - "kindString": "Call signature", + "type": "reflection", + "declaration": { + "id": 151, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "comment": { - "shortText": "Invokes the function.", - "returns": "The result of the function invocation.\n" - }, - "parameters": [ + "signatures": [ { - "id": 135, - "name": "container", - "kind": 32768, - "kindString": "Parameter", + "id": 152, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "text": "The calling container." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 136, - "name": "dynamicDependencies", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "Additional dependencies to use during invocation." - }, + "parameters": [ + { + "id": 153, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "any" + } + } + ], "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "name": "void" } } - ], - "type": { - "type": "instrinct", - "name": "any" - } + ] } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 128 - ] + } }, { - "title": "Properties", + "id": 146, + "name": "updateTarget", "kind": 1024, - "children": [ - 127, - 125, - 126 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 133 - ] - } - ] - }, - { - "id": 31, - "name": "Lazy", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Used to allow functions/classes to specify lazy resolution logic." - }, - "children": [ - { - "id": 32, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "kindString": "Property", "flags": { - "isExported": true + "isExported": true, + "isOptional": true }, "comment": { - "shortText": "Creates an instance of the Lazy class." + "shortText": "Assigns a value to the target." }, - "signatures": [ - { - "id": 33, - "name": "new Lazy", - "kind": 16384, - "kindString": "Constructor signature", + "type": { + "type": "reflection", + "declaration": { + "id": 147, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "comment": { - "shortText": "Creates an instance of the Lazy class." - }, - "parameters": [ + "signatures": [ { - "id": 34, - "name": "key", - "kind": 32768, - "kindString": "Parameter", + "id": 148, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "The key to lazily resolve.\n" - }, + "parameters": [ + { + "id": 149, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "any" + } + } + ], "type": { "type": "instrinct", - "name": "any" + "name": "void" } } - ], - "type": { - "type": "reference", - "name": "Lazy", - "id": 31, - "moduleName": "\"aurelia-dependency-injection\"" - } + ] } - ] + } }, { - "id": 35, - "name": "get", + "id": 158, + "name": "bind", "kind": 2048, "kindString": "Method", "flags": { @@ -1872,81 +2042,56 @@ }, "signatures": [ { - "id": 36, - "name": "get", + "id": 159, + "name": "bind", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to lazily resolve the dependency into a lazy locator function.", - "returns": "Returns a function which can be invoked at a later time to obtain the actual dependency.\n" + "shortText": "Connects the binding to a scope." }, "parameters": [ { - "id": 37, - "name": "container", + "id": 160, + "name": "source", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container to resolve from." - }, "type": { "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "Scope", + "id": 6 } } ], "type": { "type": "instrinct", - "name": "any" + "name": "void" } } ] }, { - "id": 38, - "name": "of", + "id": 161, + "name": "unbind", "kind": 2048, "kindString": "Method", "flags": { - "isStatic": true, "isExported": true }, "signatures": [ { - "id": 39, - "name": "of", + "id": 162, + "name": "unbind", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a Lazy Resolver for the supplied key.", - "returns": "Returns an instance of Lazy for the key.\n" + "shortText": "Disconnects the binding from a scope." }, - "parameters": [ - { - "id": 40, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The key to lazily resolve." - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], "type": { - "type": "reference", - "name": "Lazy", - "id": 31, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] @@ -1954,99 +2099,100 @@ ], "groups": [ { - "title": "Constructors", - "kind": 512, + "title": "Properties", + "kind": 1024, "children": [ - 32 + 154, + 144, + 145, + 150, + 146 ] }, { "title": "Methods", "kind": 2048, "children": [ - 35, - 38 + 158, + 161 ] } ] }, { - "id": 51, - "name": "Optional", - "kind": 128, - "kindString": "Class", + "id": 163, + "name": "BindingExpression", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "Used to allow functions/classes to specify an optional dependency, which will be resolved only if already registred with the container." + "shortText": "A factory for binding instances." }, "children": [ { - "id": 52, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 164, + "name": "createBinding", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of the Optional class." - }, "signatures": [ { - "id": 53, - "name": "new Optional", - "kind": 16384, - "kindString": "Constructor signature", + "id": 165, + "name": "createBinding", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Creates an instance of the Optional class." - }, "parameters": [ { - "id": 54, - "name": "key", + "id": 166, + "name": "target", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The key to optionally resolve for." - }, "type": { "type": "instrinct", "name": "any" } - }, - { - "id": 55, - "name": "checkParent", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Indicates whether or not the parent container hierarchy should be checked.\n" - }, - "type": { - "type": "instrinct", - "name": "boolean" - } } ], "type": { "type": "reference", - "name": "Optional", - "id": 51, - "moduleName": "\"aurelia-dependency-injection\"" + "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": 56, - "name": "get", + "id": 90, + "name": "call", "kind": 2048, "kindString": "Method", "flags": { @@ -2054,178 +2200,208 @@ }, "signatures": [ { - "id": 57, - "name": "get", + "id": 91, + "name": "call", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Called by the container to provide optional resolution of the key.", - "returns": "Returns the instance if found; otherwise null.\n" - }, "parameters": [ { - "id": 58, - "name": "container", + "id": 92, + "name": "context", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container to resolve from." - }, "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "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": "any" + "name": "void" } - } - ] - }, - { - "id": 59, - "name": "of", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ + }, { - "id": 60, - "name": "of", + "id": 95, + "name": "call", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Creates an Optional Resolver for the supplied key.", - "returns": "Returns an instance of Optional for the key.\n" - }, "parameters": [ { - "id": 61, - "name": "key", + "id": 96, + "name": "context", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The key to optionally resolve for." - }, "type": { "type": "instrinct", "name": "any" } }, { - "id": 62, - "name": "checkParent", + "id": 97, + "name": "changeRecords", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { "type": "instrinct", - "name": "boolean" + "name": "any" } } ], "type": { - "type": "reference", - "name": "Optional", - "id": 51, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] } ], "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 52 - ] - }, { "title": "Methods", "kind": 2048, "children": [ - 56, - 59 + 90 ] } ] }, { - "id": 63, - "name": "Parent", - "kind": 128, - "kindString": "Class", + "id": 71, + "name": "CollectionObserver", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "Used to inject the dependency from the parent container instead of the current one." + "shortText": "Observes collection mutation." }, "children": [ { - "id": 64, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 72, + "name": "subscribe", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of the Parent class." - }, "signatures": [ { - "id": 65, - "name": "new Parent", - "kind": 16384, - "kindString": "Constructor signature", + "id": 73, + "name": "subscribe", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates an instance of the Parent class." + "shortText": "Subscribe to collection mutation events." }, "parameters": [ { - "id": 66, - "name": "key", + "id": 74, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The key to resolve from the parent container.\n" - }, "type": { - "type": "instrinct", - "name": "any" + "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": "Parent", - "id": 63, - "moduleName": "\"aurelia-dependency-injection\"" + "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": 67, - "name": "get", + "id": 10, + "name": "dispose", "kind": 2048, "kindString": "Method", "flags": { @@ -2233,177 +2409,160 @@ }, "signatures": [ { - "id": 68, - "name": "get", + "id": 11, + "name": "dispose", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to load the dependency from the parent container", - "returns": "Returns the matching instance from the parent container\n" + "shortText": "Performs tasks associated with freeing, releasing, or resetting resources." }, - "parameters": [ - { - "id": 69, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The container to resolve the parent from." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - } - ], "type": { "type": "instrinct", - "name": "any" + "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": 70, - "name": "of", + "id": 172, + "name": "assign", "kind": 2048, "kindString": "Method", "flags": { - "isStatic": true, "isExported": true }, "signatures": [ { - "id": 71, - "name": "of", + "id": 173, + "name": "assign", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a Parent Resolver for the supplied key.", - "returns": "Returns an instance of Parent for the key.\n" + "shortText": "Assigns a value to the property represented by the expression." }, "parameters": [ { - "id": 72, - "name": "key", + "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": {}, - "comment": { - "text": "The key to resolve." - }, "type": { "type": "instrinct", "name": "any" } + }, + { + "id": 176, + "name": "lookupFunctions", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "LookupFunctions", + "id": 82 + } } ], "type": { - "type": "reference", - "name": "Parent", - "id": 63, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 64 - ] }, { - "title": "Methods", + "id": 177, + "name": "connect", "kind": 2048, - "children": [ - 67, - 70 - ] - } - ] - }, - { - "id": 114, - "name": "SingletonRegistration", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Used to allow functions/classes to indicate that they should be registered as singletons with the container." - }, - "children": [ - { - "id": 115, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of SingletonRegistration." - }, "signatures": [ { - "id": 116, - "name": "new SingletonRegistration", - "kind": 16384, - "kindString": "Constructor signature", + "id": 178, + "name": "connect", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates an instance of SingletonRegistration." + "shortText": "Subscribes a binding instance to the property change events along the path of the expression." }, "parameters": [ { - "id": 117, - "name": "keyOrRegisterInChild", + "id": 179, + "name": "binding", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Binding", + "id": 143 } }, { - "id": 118, - "name": "registerInChild", + "id": 180, + "name": "scope", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, + "flags": {}, "type": { - "type": "instrinct", - "name": "boolean" + "type": "reference", + "name": "Scope", + "id": 6 } } ], "type": { - "type": "reference", - "name": "SingletonRegistration", - "id": 114, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] }, { - "id": 119, - "name": "registerResolver", + "id": 168, + "name": "evaluate", "kind": 2048, "kindString": "Method", "flags": { @@ -2411,127 +2570,170 @@ }, "signatures": [ { - "id": 120, - "name": "registerResolver", + "id": 169, + "name": "evaluate", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to register the resolver.", - "returns": "The resolver that was registered.\n" + "shortText": "Evaluates the expression using the provided scope and lookup functions." }, "parameters": [ { - "id": 121, - "name": "container", + "id": 170, + "name": "scope", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container the resolver is being registered with." - }, "type": { "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" - } - }, - { - "id": 122, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The key the resolver should be registered as." - }, - "type": { - "type": "instrinct", - "name": "any" + "name": "Scope", + "id": 6 } }, { - "id": 123, - "name": "fn", + "id": 171, + "name": "lookupFunctions", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The function to create the resolver for." - }, "type": { "type": "reference", - "name": "Function" + "name": "LookupFunctions", + "id": 82 } } ], "type": { - "type": "reference", - "name": "Resolver", - "id": 3, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "any" } } ] } ], "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 115 - ] - }, { "title": "Methods", "kind": 2048, "children": [ - 119 + 172, + 177, + 168 ] } + ], + "implementedBy": [ + { + "type": "reference", + "name": "BindingBehavior", + "id": 181 + }, + { + "type": "reference", + "name": "ValueConverter", + "id": 195 + } ] }, { - "id": 73, - "name": "StrategyResolver", - "kind": 128, - "kindString": "Class", + "id": 124, + "name": "InternalCollectionObserver", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, + "comment": { + "shortText": "Observes collection mutation." + }, "children": [ { - "id": 74, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 125, + "name": "subscribe", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of the StrategyResolver class." - }, "signatures": [ { - "id": 75, - "name": "new StrategyResolver", - "kind": 16384, - "kindString": "Constructor signature", + "id": 126, + "name": "subscribe", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates an instance of the StrategyResolver class." + "shortText": "Subscribe to collection mutation events with a callback function." }, "parameters": [ { - "id": 76, - "name": "strategy", + "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": { - "shortText": "The type of resolution strategy." + "text": "A value to be passed to the callable object's call function when collection mutation occurs." }, "type": { "type": "instrinct", @@ -2539,32 +2741,31 @@ } }, { - "id": 77, - "name": "state", + "id": 133, + "name": "callable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The state associated with the resolution strategy.\n" + "text": "A callable object.\n" }, "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Callable", + "id": 89 } } ], "type": { - "type": "reference", - "name": "StrategyResolver", - "id": 73, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] }, { - "id": 78, - "name": "get", + "id": 134, + "name": "unsubscribe", "kind": 2048, "kindString": "Method", "flags": { @@ -2572,117 +2773,185 @@ }, "signatures": [ { - "id": 79, - "name": "get", + "id": 135, + "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to allow custom resolution of dependencies for a function/class.", - "returns": "Returns the resolved object.\n" + "shortText": "Unsubscribes a callback function from collection mutation changes." }, "parameters": [ { - "id": 80, - "name": "container", + "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": "The container to resolve from." + "text": "A value to be passed to the callable object's call function when collection mutation occurs." }, "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "any" } }, { - "id": 81, - "name": "key", + "id": 142, + "name": "callable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The key that the resolver was registered as." + "text": "A callable object.\n" }, "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Callable", + "id": 89 } } ], "type": { "type": "instrinct", - "name": "any" + "name": "void" } } ] } ], "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 74 - ] - }, { "title": "Methods", "kind": 2048, "children": [ - 78 + 125, + 134 ] } ] }, { - "id": 105, - "name": "TransientRegistration", - "kind": 128, - "kindString": "Class", + "id": 98, + "name": "InternalPropertyObserver", + "kind": 256, + "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "Used to allow functions/classes to indicate that they should be registered as transients with the container." + "shortText": "Observes property changes." }, "children": [ { - "id": 106, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", + "id": 99, + "name": "getValue", + "kind": 2048, + "kindString": "Method", "flags": { "isExported": true }, - "comment": { - "shortText": "Creates an instance of TransientRegistration." + "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": 107, - "name": "new TransientRegistration", - "kind": 16384, - "kindString": "Constructor signature", + "id": 102, + "name": "setValue", + "kind": 4096, + "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates an instance of TransientRegistration." + "shortText": "Sets the property value." }, "parameters": [ { - "id": 108, - "name": "key", + "id": 103, + "name": "newValue", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The key to register as.\n" - }, + "flags": {}, "type": { "type": "instrinct", "name": "any" @@ -2690,17 +2959,15 @@ } ], "type": { - "type": "reference", - "name": "TransientRegistration", - "id": 105, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] }, { - "id": 109, - "name": "registerResolver", + "id": 104, + "name": "subscribe", "kind": 2048, "kindString": "Method", "flags": { @@ -2708,40 +2975,93 @@ }, "signatures": [ { - "id": 110, - "name": "registerResolver", + "id": 105, + "name": "subscribe", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to register the resolver.", - "returns": "The resolver that was registered.\n" + "shortText": "Subscribe to property changes with a callback function." }, "parameters": [ { - "id": 111, - "name": "container", + "id": 106, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The container the resolver is being registered with." - }, "type": { - "type": "reference", - "name": "Container", - "id": 137, - "moduleName": "\"aurelia-dependency-injection\"" + "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": "key", + "name": "context", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The key the resolver should be registered as." + "text": "A value to be passed to the callable object's call function when a property change occurs." }, "type": { "type": "instrinct", @@ -2750,135 +3070,182 @@ }, { "id": 113, - "name": "fn", + "name": "callable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "text": "The function to create the resolver for." + "text": "A callable object.\n" }, "type": { "type": "reference", - "name": "Function" + "name": "Callable", + "id": 89 } } ], "type": { - "type": "reference", - "name": "Resolver", - "id": 3, - "moduleName": "\"aurelia-dependency-injection\"" + "type": "instrinct", + "name": "void" } } ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 106 - ] }, { - "title": "Methods", + "id": 114, + "name": "unsubscribe", "kind": 2048, - "children": [ - 109 - ] - } - ] - }, - { - "id": 26, - "name": "ContainerConfiguration", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Used to configure a Container instance." - }, - "children": [ - { - "id": 27, - "name": "onHandlerCreated", - "kind": 1024, - "kindString": "Property", + "kindString": "Method", "flags": { - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "An optional callback which will be called when any function needs an InvocationHandler created (called once per Function)." + "isExported": true }, - "type": { - "type": "reflection", - "declaration": { - "id": 28, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", + "signatures": [ + { + "id": 115, + "name": "unsubscribe", + "kind": 4096, + "kindString": "Call signature", "flags": {}, - "signatures": [ + "comment": { + "shortText": "Unsubscribes a callback function from property changes." + }, + "parameters": [ { - "id": 29, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", + "id": 116, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", "flags": {}, - "parameters": [ - { - "id": 30, - "name": "handler", - "kind": 32768, - "kindString": "Parameter", + "type": { + "type": "reflection", + "declaration": { + "id": 117, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", "flags": {}, - "type": { - "type": "reference", - "name": "InvocationHandler", - "id": 124 - } + "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": "InvocationHandler", - "id": 124 + "name": "Callable", + "id": 89 } } - ] + ], + "type": { + "type": "instrinct", + "name": "void" + } } - } + ] } ], "groups": [ - { - "title": "Properties", - "kind": 1024, + { + "title": "Methods", + "kind": 2048, "children": [ - 27 + 99, + 101, + 104, + 114 ] } ] }, { - "id": 8, - "name": "Invoker", + "id": 82, + "name": "LookupFunctions", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "A strategy for invoking a function, resulting in an object instance." + "shortText": "Lookup functions for value converter and binding behavior resources." }, "children": [ { - "id": 9, - "name": "invoke", + "id": 83, + "name": "bindingBehaviors", "kind": 2048, "kindString": "Method", "flags": { @@ -2886,55 +3253,21 @@ }, "signatures": [ { - "id": 10, - "name": "invoke", + "id": 84, + "name": "bindingBehaviors", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Invokes the function with the provided dependencies.", - "returns": "The result of the function invocation.\n" - }, "parameters": [ { - "id": 11, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Container", - "id": 137 - } - }, - { - "id": 12, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The constructor or factory function." - }, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 13, - "name": "dependencies", + "id": 85, + "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The dependencies of the function call." - }, "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "name": "string" } } ], @@ -2946,8 +3279,8 @@ ] }, { - "id": 14, - "name": "invokeWithDynamicDependencies", + "id": 86, + "name": "valueConverters", "kind": 2048, "kindString": "Method", "flags": { @@ -2955,76 +3288,109 @@ }, "signatures": [ { - "id": 15, - "name": "invokeWithDynamicDependencies", + "id": 87, + "name": "valueConverters", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Invokes the function with the provided dependencies.", - "returns": "The result of the function invocation.\n" - }, "parameters": [ { - "id": 16, - "name": "container", + "id": 88, + "name": "name", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Container", - "id": 137 + "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": 17, - "name": "fn", + "id": 216, + "name": "object", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The constructor or factory function." - }, "type": { - "type": "reference", - "name": "Function" + "type": "instrinct", + "name": "any" } }, { - "id": 18, - "name": "staticDependencies", + "id": 217, + "name": "propertyName", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The static dependencies of the function." - }, "type": { "type": "instrinct", - "isArray": true, - "name": "any" + "name": "string" } }, { - "id": 19, - "name": "dynamicDependencies", + "id": 218, + "name": "descriptor", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "Additional dependencies to use during invocation." - }, "type": { - "type": "instrinct", - "isArray": true, - "name": "any" + "type": "reference", + "name": "PropertyDescriptor" } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "InternalPropertyObserver", + "id": 98 } } ] @@ -3035,27 +3401,77 @@ "title": "Methods", "kind": 2048, "children": [ - 9, - 14 + 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": 20, - "name": "Registration", + "id": 63, + "name": "PropertyObserver", "kind": 256, "kindString": "Interface", "flags": { "isExported": true }, "comment": { - "shortText": "Customizes how a particular function is resolved by the Container." + "shortText": "Observes property changes." }, "children": [ { - "id": 21, - "name": "registerResolver", + "id": 64, + "name": "subscribe", "kind": 2048, "kindString": "Method", "flags": { @@ -3063,64 +3479,74 @@ }, "signatures": [ { - "id": 22, - "name": "registerResolver", + "id": 65, + "name": "subscribe", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Called by the container to register the resolver.", - "returns": "The resolver that was registered.\n" + "shortText": "Subscribe to property change events." }, "parameters": [ { - "id": 23, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The container the resolver is being registered with." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137 - } - }, - { - "id": 24, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The key the resolver should be registered as." - }, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 25, - "name": "fn", + "id": 66, + "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "text": "The function to create the resolver for." - }, "type": { - "type": "reference", - "name": "Function" + "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": "Resolver", - "id": 3 + "name": "Disposable", + "id": 9 } } ] @@ -3131,110 +3557,172 @@ "title": "Methods", "kind": 2048, "children": [ - 21 + 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": 3, - "name": "Resolver", - "kind": 256, - "kindString": "Interface", + "id": 284, + "name": "sourceContext", + "kind": 32, + "kindString": "Variable", "flags": { "isExported": true }, "comment": { - "shortText": "Used to allow functions/classes to specify custom dependency resolution logic." + "shortText": "A context used when invoking a binding's callable API to notify\nthe binding that the context is a \"source update\"." }, - "children": [ + "type": { + "type": "instrinct", + "name": "string" + } + }, + { + "id": 281, + "name": "bindingBehavior", + "kind": 64, + "kindString": "Function", + "flags": { + "isExported": true + }, + "signatures": [ { - "id": 4, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true + "id": 282, + "name": "bindingBehavior", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Decorator: Indicates that the decorated class is a binding behavior." }, - "signatures": [ + "parameters": [ { - "id": 5, - "name": "get", - "kind": 4096, - "kindString": "Call signature", + "id": 283, + "name": "name", + "kind": 32768, + "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Called by the container to allow custom resolution of dependencies for a function/class.", - "returns": "Returns the resolved object.\n" + "text": "The name of the binding behavior.\n" }, - "parameters": [ - { - "id": 6, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The container to resolve from." - }, - "type": { - "type": "reference", - "name": "Container", - "id": 137 - } - }, - { - "id": 7, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The key that the resolver was registered as." - }, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], "type": { "type": "instrinct", - "name": "any" + "name": "string" } } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 4 - ] + ], + "type": { + "type": "instrinct", + "name": "any" + } } ] }, { - "id": 207, - "name": "resolver", - "kind": 32, - "kindString": "Variable", + "id": 275, + "name": "computedFrom", + "kind": 64, + "kindString": "Function", "flags": { "isExported": true }, - "comment": { - "shortText": "Decorator: Indicates that the decorated class/object is a custom resolver." - }, - "type": { - "type": "reference", - "name": "Function" - } + "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": 224, - "name": "autoinject", + "id": 257, + "name": "createOverrideContext", "kind": 64, "kindString": "Function", "flags": { @@ -3242,39 +3730,54 @@ }, "signatures": [ { - "id": 225, - "name": "autoinject", + "id": 258, + "name": "createOverrideContext", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Directs the TypeScript transpiler to write-out type metadata for the decorated class." + "shortText": "Creates an overrideContext object with the supplied bindingContext and optional parent overrideContext." }, "parameters": [ { - "id": 226, - "name": "potentialTarget", + "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": "instrinct", - "name": "any" + "type": "reference", + "name": "OverrideContext", + "id": 3, + "moduleName": "\"aurelia-binding\"" } } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "OverrideContext", + "id": 3, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 211, - "name": "factory", + "id": 261, + "name": "createScopeForTest", "kind": 64, "kindString": "Function", "flags": { @@ -3282,18 +3785,29 @@ }, "signatures": [ { - "id": 212, - "name": "factory", + "id": 262, + "name": "createScopeForTest", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies that the decorated item should be called as a factory function, rather than a constructor." + "shortText": "Creates a scope object for testing purposes." }, "parameters": [ { - "id": 213, - "name": "potentialTarget", + "id": 263, + "name": "bindingContext", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "instrinct", + "name": "any" + } + }, + { + "id": 264, + "name": "parentBindingContext", "kind": 32768, "kindString": "Parameter", "flags": { @@ -3306,15 +3820,17 @@ } ], "type": { - "type": "instrinct", - "name": "any" + "type": "reference", + "name": "Scope", + "id": 6, + "moduleName": "\"aurelia-binding\"" } } ] }, { - "id": 227, - "name": "inject", + "id": 270, + "name": "declarePropertyDependencies", "kind": 64, "kindString": "Function", "flags": { @@ -3322,30 +3838,75 @@ }, "signatures": [ { - "id": 228, - "name": "inject", + "id": 271, + "name": "declarePropertyDependencies", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies the dependencies that should be injected by the DI Container into the decoratored class/function." + "shortText": "Declares a property's dependencies." }, "parameters": [ { - "id": 229, - "name": "rest", + "id": 272, + "name": "ctor", "kind": 32768, "kindString": "Parameter", - "flags": { - "isRest": true - }, + "flags": {}, "type": { "type": "instrinct", - "isArray": true, "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" @@ -3354,8 +3915,8 @@ ] }, { - "id": 208, - "name": "invoker", + "id": 267, + "name": "hasDeclaredDependencies", "kind": 64, "kindString": "Function", "flags": { @@ -3363,39 +3924,37 @@ }, "signatures": [ { - "id": 209, - "name": "invoker", + "id": 268, + "name": "hasDeclaredDependencies", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies a custom Invoker for the decorated item." + "shortText": "Returns whether a property's dependencies have been declared." }, "parameters": [ { - "id": 210, - "name": "value", + "id": 269, + "name": "descriptor", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "name": "Invoker", - "id": 8, - "moduleName": "\"aurelia-dependency-injection\"" + "name": "PropertyDescriptor" } } ], "type": { "type": "instrinct", - "name": "any" + "name": "boolean" } } ] }, { - "id": 214, - "name": "registration", + "id": 287, + "name": "mergeSplice", "kind": 64, "kindString": "Function", "flags": { @@ -3403,26 +3962,57 @@ }, "signatures": [ { - "id": 215, - "name": "registration", + "id": 288, + "name": "mergeSplice", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies a custom registration strategy for the decorated class/function." + "shortText": "An internal API used by Aurelia's array observation components." }, "parameters": [ { - "id": 216, - "name": "value", + "id": 289, + "name": "splices", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "name": "Registration", - "id": 20, - "moduleName": "\"aurelia-dependency-injection\"" + "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" } } ], @@ -3434,8 +4024,8 @@ ] }, { - "id": 220, - "name": "singleton", + "id": 293, + "name": "observable", "kind": 64, "kindString": "Function", "flags": { @@ -3443,18 +4033,34 @@ }, "signatures": [ { - "id": 221, - "name": "singleton", + "id": 294, + "name": "observable", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies to register the decorated item with a \"singleton\" lieftime." + "shortText": "Decorator: Specifies that a property is observable." }, "parameters": [ { - "id": 222, - "name": "keyOrRegisterInChild", + "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": { @@ -3466,8 +4072,8 @@ } }, { - "id": 223, - "name": "registerInChild", + "id": 297, + "name": "descriptor", "kind": 32768, "kindString": "Parameter", "flags": { @@ -3475,7 +4081,7 @@ }, "type": { "type": "instrinct", - "name": "boolean" + "name": "any" } } ], @@ -3487,8 +4093,33 @@ ] }, { - "id": 217, - "name": "transient", + "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": { @@ -3496,26 +4127,27 @@ }, "signatures": [ { - "id": 218, - "name": "transient", + "id": 279, + "name": "valueConverter", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Decorator: Specifies to register the decorated item with a \"transient\" lifetime." + "shortText": "Decorator: Indicates that the decorated class is a value converter." }, "parameters": [ { - "id": 219, - "name": "key", + "id": 280, + "name": "name", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true + "flags": {}, + "comment": { + "text": "The name of the value converter.\n" }, "type": { "type": "instrinct", - "name": "any" + "name": "string" } } ], @@ -3528,51 +4160,68 @@ } ], "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 78 + ] + }, { "title": "Classes", "kind": 128, "children": [ - 41, - 137, - 82, - 92, - 124, - 31, - 51, - 63, - 114, - 73, - 105 + 181, + 27, + 233, + 42, + 219, + 209, + 195, + 12 ] }, { "title": "Interfaces", "kind": 256, "children": [ - 26, - 8, - 20, - 3 + 143, + 163, + 89, + 71, + 9, + 167, + 124, + 98, + 82, + 213, + 3, + 63, + 6 ] }, { "title": "Variables", "kind": 32, "children": [ - 207 + 284 ] }, { "title": "Functions", "kind": 64, "children": [ - 224, - 211, - 227, - 208, - 214, - 220, - 217 + 281, + 275, + 257, + 261, + 270, + 285, + 267, + 287, + 293, + 265, + 278 ] } ] diff --git a/package.json b/package.json index aa25605e..1112af4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-validation", - "version": "0.8.0", + "version": "0.8.1", "description": "This is a validation interface for hooking in to Aurelia's binding and templating engines.", "keywords": [ "aurelia",