diff --git a/bower.json b/bower.json index a509e77..2ab9b9a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-binding", - "version": "1.5.0", + "version": "1.5.1", "description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-templating-binding.js b/dist/amd/aurelia-templating-binding.js index c12da85..2a80ec1 100644 --- a/dist/amd/aurelia-templating-binding.js +++ b/dist/amd/aurelia-templating-binding.js @@ -4,7 +4,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], Object.defineProperty(exports, "__esModule", { value: true }); - exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined; + exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.LetBinding = exports.LetExpression = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined; exports.configure = configure; var LogManager = _interopRequireWildcard(_aureliaLogging); @@ -52,7 +52,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], - var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3; + var _class, _temp, _dec, _class2, _dec2, _class3, _class4, _temp2, _class5, _temp3; var AttributeMap = exports.AttributeMap = (_temp = _class = function () { function AttributeMap(svg) { @@ -332,7 +332,97 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], return ChildInterpolationBinding; }()) || _class2); - var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class3 = function () { + + var LetExpression = exports.LetExpression = function () { + function LetExpression(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + LetExpression.prototype.createBinding = function createBinding() { + return new LetBinding(this.observerLocator, this.sourceExpression, this.targetProperty, this.lookupFunctions, this.toBindingContext); + }; + + return LetExpression; + }(); + + var LetBinding = exports.LetBinding = (_dec2 = (0, _aureliaBinding.connectable)(), _dec2(_class3 = function () { + function LetBinding(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + LetBinding.prototype.updateTarget = function updateTarget() { + var value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + }; + + LetBinding.prototype.call = function call(context) { + if (!this.isBound) { + return; + } + if (context === _aureliaBinding.sourceContext) { + this.updateTarget(); + return; + } + throw new Error('Unexpected call context ' + context); + }; + + LetBinding.prototype.bind = function bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + (0, _aureliaBinding.enqueueBindingConnect)(this); + }; + + LetBinding.prototype.unbind = function unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + }; + + LetBinding.prototype.connect = function connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + }; + + return LetBinding; + }()) || _class3); + var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class4 = function () { function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) { @@ -532,14 +622,14 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], }; return SyntaxInterpreter; - }(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2); + }(), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2); SyntaxInterpreter.prototype['one-way'] = SyntaxInterpreter.prototype['to-view']; var info = {}; - var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) { + var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class5 = function (_BindingLanguage) { _inherits(TemplatingBindingLanguage, _BindingLanguage); function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) { @@ -738,7 +828,7 @@ define(['exports', 'aurelia-logging', 'aurelia-binding', 'aurelia-templating'], }; return TemplatingBindingLanguage; - }(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); + }(_aureliaTemplating.BindingLanguage), _class5.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); function configure(config) { config.container.registerSingleton(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage); config.container.registerAlias(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage); diff --git a/dist/aurelia-templating-binding.d.ts b/dist/aurelia-templating-binding.d.ts index 6118d75..7c8d726 100644 --- a/dist/aurelia-templating-binding.d.ts +++ b/dist/aurelia-templating-binding.d.ts @@ -5,6 +5,7 @@ import { bindingMode, connectable, enqueueBindingConnect, + sourceContext, Parser, ObserverLocator, EventManager, @@ -59,6 +60,39 @@ export declare class ChildInterpolationBinding { unbind(): any; connect(evaluate?: any): any; } +export declare class LetExpression { + + /** + * @param {ObserverLocator} observerLocator + * @param {string} targetProperty + * @param {Expression} sourceExpression + * @param {any} lookupFunctions + * @param {boolean} toBindingContext indicates let binding result should be assigned to binding context + */ + constructor(observerLocator?: any, targetProperty?: any, sourceExpression?: any, lookupFunctions?: any, toBindingContext?: any); + createBinding(): any; +} +export declare class LetBinding { + + /** + * @param {ObserverLocator} observerLocator + * @param {Expression} sourceExpression + * @param {Function | Element} target + * @param {string} targetProperty + * @param {*} lookupFunctions + * @param {boolean} toBindingContext indicates let binding result should be assigned to binding context + */ + constructor(observerLocator?: any, sourceExpression?: any, targetProperty?: any, lookupFunctions?: any, toBindingContext?: any); + updateTarget(): any; + call(context?: any): any; + + /** + * @param {Scope} source Binding context + */ + bind(source?: any): any; + unbind(): any; + connect(): any; +} /*eslint dot-notation:0*/ export declare class SyntaxInterpreter { diff --git a/dist/aurelia-templating-binding.js b/dist/aurelia-templating-binding.js index 2ce421d..ae1164b 100644 --- a/dist/aurelia-templating-binding.js +++ b/dist/aurelia-templating-binding.js @@ -1,5 +1,5 @@ import * as LogManager from 'aurelia-logging'; -import {camelCase,SVGAnalyzer,bindingMode,connectable,enqueueBindingConnect,Parser,ObserverLocator,EventManager,ListenerExpression,BindingExpression,CallExpression,delegationStrategy,NameExpression,LiteralString} from 'aurelia-binding'; +import {camelCase,SVGAnalyzer,bindingMode,connectable,enqueueBindingConnect,sourceContext,Parser,ObserverLocator,EventManager,ListenerExpression,BindingExpression,CallExpression,delegationStrategy,NameExpression,LiteralString} from 'aurelia-binding'; import {BehaviorInstruction,BindingLanguage} from 'aurelia-templating'; export class AttributeMap { @@ -295,6 +295,113 @@ export class ChildInterpolationBinding { } } +export class LetExpression { + /** + * @param {ObserverLocator} observerLocator + * @param {string} targetProperty + * @param {Expression} sourceExpression + * @param {any} lookupFunctions + * @param {boolean} toBindingContext indicates let binding result should be assigned to binding context + */ + constructor(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + createBinding() { + return new LetBinding( + this.observerLocator, + this.sourceExpression, + this.targetProperty, + this.lookupFunctions, + this.toBindingContext + ); + } +} + +@connectable() +export class LetBinding { + /** + * @param {ObserverLocator} observerLocator + * @param {Expression} sourceExpression + * @param {Function | Element} target + * @param {string} targetProperty + * @param {*} lookupFunctions + * @param {boolean} toBindingContext indicates let binding result should be assigned to binding context + */ + constructor(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + updateTarget() { + const value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + } + + call(context) { + if (!this.isBound) { + return; + } + if (context === sourceContext) { + this.updateTarget(); + return; + } + throw new Error(`Unexpected call context ${context}`); + } + + /** + * @param {Scope} source Binding context + */ + bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + enqueueBindingConnect(this); + } + + unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + } + + connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + } +} + /*eslint dot-notation:0*/ export class SyntaxInterpreter { static inject = [Parser, ObserverLocator, EventManager, AttributeMap]; diff --git a/dist/commonjs/aurelia-templating-binding.js b/dist/commonjs/aurelia-templating-binding.js index 3ba3b6c..f2001c5 100644 --- a/dist/commonjs/aurelia-templating-binding.js +++ b/dist/commonjs/aurelia-templating-binding.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined; +exports.TemplatingBindingLanguage = exports.SyntaxInterpreter = exports.LetBinding = exports.LetExpression = exports.ChildInterpolationBinding = exports.InterpolationBinding = exports.InterpolationBindingExpression = exports.AttributeMap = undefined; -var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3; +var _class, _temp, _dec, _class2, _dec2, _class3, _class4, _temp2, _class5, _temp3; exports.configure = configure; @@ -303,7 +303,97 @@ var ChildInterpolationBinding = exports.ChildInterpolationBinding = (_dec = (0, return ChildInterpolationBinding; }()) || _class2); -var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class3 = function () { + +var LetExpression = exports.LetExpression = function () { + function LetExpression(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + LetExpression.prototype.createBinding = function createBinding() { + return new LetBinding(this.observerLocator, this.sourceExpression, this.targetProperty, this.lookupFunctions, this.toBindingContext); + }; + + return LetExpression; +}(); + +var LetBinding = exports.LetBinding = (_dec2 = (0, _aureliaBinding.connectable)(), _dec2(_class3 = function () { + function LetBinding(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + LetBinding.prototype.updateTarget = function updateTarget() { + var value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + }; + + LetBinding.prototype.call = function call(context) { + if (!this.isBound) { + return; + } + if (context === _aureliaBinding.sourceContext) { + this.updateTarget(); + return; + } + throw new Error('Unexpected call context ' + context); + }; + + LetBinding.prototype.bind = function bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + (0, _aureliaBinding.enqueueBindingConnect)(this); + }; + + LetBinding.prototype.unbind = function unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + }; + + LetBinding.prototype.connect = function connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + }; + + return LetBinding; +}()) || _class3); +var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class4 = function () { function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) { @@ -503,14 +593,14 @@ var SyntaxInterpreter = exports.SyntaxInterpreter = (_temp2 = _class3 = function }; return SyntaxInterpreter; -}(), _class3.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2); +}(), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, _aureliaBinding.EventManager, AttributeMap], _temp2); SyntaxInterpreter.prototype['one-way'] = SyntaxInterpreter.prototype['to-view']; var info = {}; -var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) { +var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _class5 = function (_BindingLanguage) { _inherits(TemplatingBindingLanguage, _BindingLanguage); function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) { @@ -709,7 +799,7 @@ var TemplatingBindingLanguage = exports.TemplatingBindingLanguage = (_temp3 = _c }; return TemplatingBindingLanguage; -}(_aureliaTemplating.BindingLanguage), _class4.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); +}(_aureliaTemplating.BindingLanguage), _class5.inject = [_aureliaBinding.Parser, _aureliaBinding.ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); function configure(config) { config.container.registerSingleton(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage); config.container.registerAlias(_aureliaTemplating.BindingLanguage, TemplatingBindingLanguage); diff --git a/dist/es2015/aurelia-templating-binding.js b/dist/es2015/aurelia-templating-binding.js index 064a67c..e003160 100644 --- a/dist/es2015/aurelia-templating-binding.js +++ b/dist/es2015/aurelia-templating-binding.js @@ -1,7 +1,7 @@ -var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3; +var _class, _temp, _dec, _class2, _dec2, _class3, _class4, _temp2, _class5, _temp3; import * as LogManager from 'aurelia-logging'; -import { camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString } from 'aurelia-binding'; +import { camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, sourceContext, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString } from 'aurelia-binding'; import { BehaviorInstruction, BindingLanguage } from 'aurelia-templating'; export let AttributeMap = (_temp = _class = class AttributeMap { @@ -268,7 +268,89 @@ export let ChildInterpolationBinding = (_dec = connectable(), _dec(_class2 = cla } }) || _class2); -export let SyntaxInterpreter = (_temp2 = _class3 = class SyntaxInterpreter { +export let LetExpression = class LetExpression { + constructor(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + createBinding() { + return new LetBinding(this.observerLocator, this.sourceExpression, this.targetProperty, this.lookupFunctions, this.toBindingContext); + } +}; + +export let LetBinding = (_dec2 = connectable(), _dec2(_class3 = class LetBinding { + constructor(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + updateTarget() { + const value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + } + + call(context) { + if (!this.isBound) { + return; + } + if (context === sourceContext) { + this.updateTarget(); + return; + } + throw new Error(`Unexpected call context ${context}`); + } + + bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + enqueueBindingConnect(this); + } + + unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + } + + connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + } +}) || _class3); + +export let SyntaxInterpreter = (_temp2 = _class4 = class SyntaxInterpreter { constructor(parser, observerLocator, eventManager, attributeMap) { this.parser = parser; @@ -465,13 +547,13 @@ export let SyntaxInterpreter = (_temp2 = _class3 = class SyntaxInterpreter { return instruction; } -}, _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2); +}, _class4.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2); SyntaxInterpreter.prototype['one-way'] = SyntaxInterpreter.prototype['to-view']; let info = {}; -export let TemplatingBindingLanguage = (_temp3 = _class4 = class TemplatingBindingLanguage extends BindingLanguage { +export let TemplatingBindingLanguage = (_temp3 = _class5 = class TemplatingBindingLanguage extends BindingLanguage { constructor(parser, observerLocator, syntaxInterpreter, attributeMap) { super(); @@ -663,7 +745,7 @@ export let TemplatingBindingLanguage = (_temp3 = _class4 = class TemplatingBindi parts[partIndex] = value.substr(pos); return parts; } -}, _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); +}, _class5.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); export function configure(config) { config.container.registerSingleton(BindingLanguage, TemplatingBindingLanguage); diff --git a/dist/native-modules/aurelia-templating-binding.js b/dist/native-modules/aurelia-templating-binding.js index 3b63c32..110b9f3 100644 --- a/dist/native-modules/aurelia-templating-binding.js +++ b/dist/native-modules/aurelia-templating-binding.js @@ -1,4 +1,4 @@ -var _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3; +var _class, _temp, _dec, _class2, _dec2, _class3, _class4, _temp2, _class5, _temp3; function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -7,7 +7,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" import * as LogManager from 'aurelia-logging'; -import { camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString } from 'aurelia-binding'; +import { camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, sourceContext, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString } from 'aurelia-binding'; import { BehaviorInstruction, BindingLanguage } from 'aurelia-templating'; export var AttributeMap = (_temp = _class = function () { @@ -289,7 +289,97 @@ export var ChildInterpolationBinding = (_dec = connectable(), _dec(_class2 = fun return ChildInterpolationBinding; }()) || _class2); -export var SyntaxInterpreter = (_temp2 = _class3 = function () { +export var LetExpression = function () { + function LetExpression(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + LetExpression.prototype.createBinding = function createBinding() { + return new LetBinding(this.observerLocator, this.sourceExpression, this.targetProperty, this.lookupFunctions, this.toBindingContext); + }; + + return LetExpression; +}(); + +export var LetBinding = (_dec2 = connectable(), _dec2(_class3 = function () { + function LetBinding(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + LetBinding.prototype.updateTarget = function updateTarget() { + var value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + }; + + LetBinding.prototype.call = function call(context) { + if (!this.isBound) { + return; + } + if (context === sourceContext) { + this.updateTarget(); + return; + } + throw new Error('Unexpected call context ' + context); + }; + + LetBinding.prototype.bind = function bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + enqueueBindingConnect(this); + }; + + LetBinding.prototype.unbind = function unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + }; + + LetBinding.prototype.connect = function connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + }; + + return LetBinding; +}()) || _class3); + +export var SyntaxInterpreter = (_temp2 = _class4 = function () { function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) { @@ -489,13 +579,13 @@ export var SyntaxInterpreter = (_temp2 = _class3 = function () { }; return SyntaxInterpreter; -}(), _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2); +}(), _class4.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2); SyntaxInterpreter.prototype['one-way'] = SyntaxInterpreter.prototype['to-view']; var info = {}; -export var TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) { +export var TemplatingBindingLanguage = (_temp3 = _class5 = function (_BindingLanguage) { _inherits(TemplatingBindingLanguage, _BindingLanguage); function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) { @@ -694,7 +784,7 @@ export var TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLan }; return TemplatingBindingLanguage; -}(BindingLanguage), _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); +}(BindingLanguage), _class5.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3); export function configure(config) { config.container.registerSingleton(BindingLanguage, TemplatingBindingLanguage); diff --git a/dist/system/aurelia-templating-binding.js b/dist/system/aurelia-templating-binding.js index bedc3d0..8523885 100644 --- a/dist/system/aurelia-templating-binding.js +++ b/dist/system/aurelia-templating-binding.js @@ -3,7 +3,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], function (_export, _context) { "use strict"; - var LogManager, camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString, BehaviorInstruction, BindingLanguage, _class, _temp, _dec, _class2, _class3, _temp2, _class4, _temp3, AttributeMap, InterpolationBindingExpression, InterpolationBinding, ChildInterpolationBinding, SyntaxInterpreter, info, TemplatingBindingLanguage; + var LogManager, camelCase, SVGAnalyzer, bindingMode, connectable, enqueueBindingConnect, sourceContext, Parser, ObserverLocator, EventManager, ListenerExpression, BindingExpression, CallExpression, delegationStrategy, NameExpression, LiteralString, BehaviorInstruction, BindingLanguage, _class, _temp, _dec, _class2, _dec2, _class3, _class4, _temp2, _class5, _temp3, AttributeMap, InterpolationBindingExpression, InterpolationBinding, ChildInterpolationBinding, LetExpression, LetBinding, SyntaxInterpreter, info, TemplatingBindingLanguage; function _possibleConstructorReturn(self, call) { if (!self) { @@ -55,6 +55,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu bindingMode = _aureliaBinding.bindingMode; connectable = _aureliaBinding.connectable; enqueueBindingConnect = _aureliaBinding.enqueueBindingConnect; + sourceContext = _aureliaBinding.sourceContext; Parser = _aureliaBinding.Parser; ObserverLocator = _aureliaBinding.ObserverLocator; EventManager = _aureliaBinding.EventManager; @@ -348,7 +349,101 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu _export('ChildInterpolationBinding', ChildInterpolationBinding); - _export('SyntaxInterpreter', SyntaxInterpreter = (_temp2 = _class3 = function () { + _export('LetExpression', LetExpression = function () { + function LetExpression(observerLocator, targetProperty, sourceExpression, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.toBindingContext = toBindingContext; + } + + LetExpression.prototype.createBinding = function createBinding() { + return new LetBinding(this.observerLocator, this.sourceExpression, this.targetProperty, this.lookupFunctions, this.toBindingContext); + }; + + return LetExpression; + }()); + + _export('LetExpression', LetExpression); + + _export('LetBinding', LetBinding = (_dec2 = connectable(), _dec2(_class3 = function () { + function LetBinding(observerLocator, sourceExpression, targetProperty, lookupFunctions, toBindingContext) { + + + this.observerLocator = observerLocator; + this.sourceExpression = sourceExpression; + this.targetProperty = targetProperty; + this.lookupFunctions = lookupFunctions; + this.source = null; + this.target = null; + this.toBindingContext = toBindingContext; + } + + LetBinding.prototype.updateTarget = function updateTarget() { + var value = this.sourceExpression.evaluate(this.source, this.lookupFunctions); + this.target[this.targetProperty] = value; + }; + + LetBinding.prototype.call = function call(context) { + if (!this.isBound) { + return; + } + if (context === sourceContext) { + this.updateTarget(); + return; + } + throw new Error('Unexpected call context ' + context); + }; + + LetBinding.prototype.bind = function bind(source) { + if (this.isBound) { + if (this.source === source) { + return; + } + this.unbind(); + } + + this.isBound = true; + this.source = source; + this.target = this.toBindingContext ? source.bindingContext : source.overrideContext; + + if (this.sourceExpression.bind) { + this.sourceExpression.bind(this, source, this.lookupFunctions); + } + + enqueueBindingConnect(this); + }; + + LetBinding.prototype.unbind = function unbind() { + if (!this.isBound) { + return; + } + this.isBound = false; + if (this.sourceExpression.unbind) { + this.sourceExpression.unbind(this, this.source); + } + this.source = null; + this.target = null; + this.unobserve(true); + }; + + LetBinding.prototype.connect = function connect() { + if (!this.isBound) { + return; + } + this.updateTarget(); + this.sourceExpression.connect(this, this.source); + }; + + return LetBinding; + }()) || _class3)); + + _export('LetBinding', LetBinding); + + _export('SyntaxInterpreter', SyntaxInterpreter = (_temp2 = _class4 = function () { function SyntaxInterpreter(parser, observerLocator, eventManager, attributeMap) { @@ -548,7 +643,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu }; return SyntaxInterpreter; - }(), _class3.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2)); + }(), _class4.inject = [Parser, ObserverLocator, EventManager, AttributeMap], _temp2)); _export('SyntaxInterpreter', SyntaxInterpreter); @@ -556,7 +651,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu info = {}; - _export('TemplatingBindingLanguage', TemplatingBindingLanguage = (_temp3 = _class4 = function (_BindingLanguage) { + _export('TemplatingBindingLanguage', TemplatingBindingLanguage = (_temp3 = _class5 = function (_BindingLanguage) { _inherits(TemplatingBindingLanguage, _BindingLanguage); function TemplatingBindingLanguage(parser, observerLocator, syntaxInterpreter, attributeMap) { @@ -755,7 +850,7 @@ System.register(['aurelia-logging', 'aurelia-binding', 'aurelia-templating'], fu }; return TemplatingBindingLanguage; - }(BindingLanguage), _class4.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3)); + }(BindingLanguage), _class5.inject = [Parser, ObserverLocator, SyntaxInterpreter, AttributeMap], _temp3)); _export('TemplatingBindingLanguage', TemplatingBindingLanguage); } diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 06fe532..7663e4f 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [1.5.1](https://github.com/aurelia/templating-binding/compare/1.5.0...1.5.1) (2018-10-02) + + + # [1.5.0](https://github.com/aurelia/templating-binding/compare/1.4.3...1.5.0) (2018-09-29) diff --git a/doc/api.json b/doc/api.json index 66fea8d..f2069fa 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"name":"aurelia-templating-binding","children":[{"id":2,"name":"AttributeMap","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":6,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":7,"name":"new AttributeMap","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":8,"name":"svg","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"AttributeMap","id":2}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":25,"character":19}]},{"id":5,"name":"allElements","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":25,"character":13}],"type":{"type":"intrinsic","name":"any"}},{"id":4,"name":"elements","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":24,"character":10}],"type":{"type":"intrinsic","name":"any"}},{"id":3,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":23,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":18,"name":"map","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":19,"name":"map","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the javascript property name for a particlar HTML attribute."},"parameters":[{"id":20,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":21,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":41,"character":5}]},{"id":9,"name":"register","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":10,"name":"register","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Maps a specific HTML element attribute to a javascript property."},"parameters":[{"id":11,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":12,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":13,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":31,"character":10}]},{"id":14,"name":"registerUniversal","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":15,"name":"registerUniversal","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Maps an HTML attribute to a javascript property."},"parameters":[{"id":16,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":17,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":36,"character":19}]}],"groups":[{"title":"Constructors","kind":512,"children":[6]},{"title":"Properties","kind":1024,"children":[5,4,3]},{"title":"Methods","kind":2048,"children":[18,9,14]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":22,"character":33}]},{"id":52,"name":"ChildInterpolationBinding","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":53,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":54,"name":"new ChildInterpolationBinding","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":55,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":56,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":57,"name":"sourceExpression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":58,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":59,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":60,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":61,"name":"left","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":62,"name":"right","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"ChildInterpolationBinding","id":52}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":54,"character":48}]},{"id":68,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":70,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":58,"character":6}]},{"id":66,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":67,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":57,"character":6}]},{"id":73,"name":"connect","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":74,"name":"connect","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":75,"name":"evaluate","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":60,"character":9}]},{"id":71,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":72,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":59,"character":8}]},{"id":63,"name":"updateTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":64,"name":"updateTarget","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":65,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":56,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[53]},{"title":"Methods","kind":2048,"children":[68,66,73,71,63]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":54,"character":46}]},{"id":34,"name":"InterpolationBinding","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":35,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":36,"name":"new InterpolationBinding","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":37,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":38,"name":"parts","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":39,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":40,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":41,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":42,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"InterpolationBinding","id":34}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":47,"character":43}]},{"id":47,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":48,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":49,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":51,"character":6}]},{"id":43,"name":"interpolate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":44,"name":"interpolate","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":49,"character":13}]},{"id":50,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":51,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":52,"character":8}]},{"id":45,"name":"updateOneTimeBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":46,"name":"updateOneTimeBindings","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":50,"character":23}]}],"groups":[{"title":"Constructors","kind":512,"children":[35]},{"title":"Methods","kind":2048,"children":[47,43,50,45]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":47,"character":41}]},{"id":22,"name":"InterpolationBindingExpression","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":23,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":24,"name":"new InterpolationBindingExpression","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":25,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":26,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":27,"name":"parts","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":28,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":29,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":30,"name":"attribute","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"InterpolationBindingExpression","id":22}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":43,"character":53}]},{"id":31,"name":"createBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":32,"name":"createBinding","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":33,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":45,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[23]},{"title":"Methods","kind":2048,"children":[31]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":43,"character":51}]},{"id":76,"name":"SyntaxInterpreter","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":78,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":79,"name":"new SyntaxInterpreter","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":80,"name":"parser","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":81,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":82,"name":"eventManager","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":83,"name":"attributeMap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SyntaxInterpreter","id":76}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":65,"character":21}]},{"id":77,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":65,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":103,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":104,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":105,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":106,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":107,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":108,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":109,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":70,"character":6}]},{"id":125,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":126,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":127,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":128,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":129,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":130,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":74,"character":6}]},{"id":115,"name":"capture","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":116,"name":"capture","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":117,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":118,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":119,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":72,"character":9}]},{"id":120,"name":"delegate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":121,"name":"delegate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":122,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":123,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":124,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":73,"character":10}]},{"id":98,"name":"determineDefaultBindingMode","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":99,"name":"determineDefaultBindingMode","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":100,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":101,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":102,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":69,"character":29}]},{"id":138,"name":"for","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":139,"name":"for","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":140,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":141,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":142,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":143,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":76,"character":7}]},{"id":156,"name":"from-view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":157,"name":"from-view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":158,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":159,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":160,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":161,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":79,"character":13}]},{"id":91,"name":"handleUnknownCommand","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":92,"name":"handleUnknownCommand","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":93,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":94,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":95,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":96,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":97,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":68,"character":22}]},{"id":84,"name":"interpret","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":85,"name":"interpret","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":86,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":87,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":88,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":89,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":90,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":67,"character":11}]},{"id":162,"name":"one-time","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":163,"name":"one-time","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":164,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":165,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":166,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":167,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":80,"character":12}]},{"id":131,"name":"options","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":132,"name":"options","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":133,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":134,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":135,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":136,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":137,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":75,"character":9}]},{"id":150,"name":"to-view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":151,"name":"to-view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":152,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":153,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":154,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":155,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":78,"character":11}]},{"id":110,"name":"trigger","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":111,"name":"trigger","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":112,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":113,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":114,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":71,"character":9}]},{"id":144,"name":"two-way","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":145,"name":"two-way","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":146,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":147,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":148,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":149,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":77,"character":11}]}],"groups":[{"title":"Constructors","kind":512,"children":[78]},{"title":"Properties","kind":1024,"children":[77]},{"title":"Methods","kind":2048,"children":[103,125,115,120,98,138,156,91,84,162,131,150,110,144]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":64,"character":38}]},{"id":168,"name":"TemplatingBindingLanguage","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":170,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":171,"name":"new TemplatingBindingLanguage","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":172,"name":"parser","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":173,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":174,"name":"syntaxInterpreter","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":175,"name":"attributeMap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"TemplatingBindingLanguage","id":168}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":83,"character":21}]},{"id":169,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":83,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":182,"name":"createAttributeInstruction","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":183,"name":"createAttributeInstruction","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":184,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":185,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":186,"name":"theInfo","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":187,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":188,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.createAttributeInstruction"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":86,"character":28}],"overwrites":{"type":"reference","name":"BindingLanguage.createAttributeInstruction"}},{"id":189,"name":"createLetExpressions","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":190,"name":"createLetExpressions","kind":4096,"kindString":"Call signature","flags":{},"comment":{},"parameters":[{"id":191,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":192,"name":"letElement","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":92,"character":22}]},{"id":176,"name":"inspectAttribute","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":177,"name":"inspectAttribute","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":178,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":179,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":180,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":181,"name":"attrValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.inspectAttribute"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":85,"character":18}],"overwrites":{"type":"reference","name":"BindingLanguage.inspectAttribute"}},{"id":193,"name":"inspectTextContent","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":194,"name":"inspectTextContent","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":195,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":196,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.inspectTextContent"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":93,"character":20}],"overwrites":{"type":"reference","name":"BindingLanguage.inspectTextContent"}},{"id":197,"name":"parseInterpolation","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":198,"name":"parseInterpolation","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":199,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":200,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":94,"character":20}]}],"groups":[{"title":"Constructors","kind":512,"children":[170]},{"title":"Properties","kind":1024,"children":[169]},{"title":"Methods","kind":2048,"children":[182,189,176,193,197]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":82,"character":46}],"extendedTypes":[{"type":"reference","name":"BindingLanguage"}]},{"id":201,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":202,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":203,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":96,"character":33}]}],"groups":[{"title":"Classes","kind":128,"children":[2,52,34,22,76,168]},{"title":"Functions","kind":64,"children":[201]}]} \ No newline at end of file +{"name":"aurelia-templating-binding","children":[{"id":2,"name":"AttributeMap","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":6,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":7,"name":"new AttributeMap","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":8,"name":"svg","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"AttributeMap","id":2}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":26,"character":19}]},{"id":5,"name":"allElements","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":26,"character":13}],"type":{"type":"intrinsic","name":"any"}},{"id":4,"name":"elements","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":25,"character":10}],"type":{"type":"intrinsic","name":"any"}},{"id":3,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":24,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":18,"name":"map","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":19,"name":"map","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the javascript property name for a particlar HTML attribute."},"parameters":[{"id":20,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":21,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":42,"character":5}]},{"id":9,"name":"register","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":10,"name":"register","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Maps a specific HTML element attribute to a javascript property."},"parameters":[{"id":11,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":12,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":13,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":32,"character":10}]},{"id":14,"name":"registerUniversal","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":15,"name":"registerUniversal","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Maps an HTML attribute to a javascript property."},"parameters":[{"id":16,"name":"attributeName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":17,"name":"propertyName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":37,"character":19}]}],"groups":[{"title":"Constructors","kind":512,"children":[6]},{"title":"Properties","kind":1024,"children":[5,4,3]},{"title":"Methods","kind":2048,"children":[18,9,14]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":23,"character":33}]},{"id":52,"name":"ChildInterpolationBinding","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":53,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":54,"name":"new ChildInterpolationBinding","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":55,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":56,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":57,"name":"sourceExpression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":58,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":59,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":60,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":61,"name":"left","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":62,"name":"right","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"ChildInterpolationBinding","id":52}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":55,"character":48}]},{"id":68,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":70,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":59,"character":6}]},{"id":66,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":67,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":58,"character":6}]},{"id":73,"name":"connect","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":74,"name":"connect","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":75,"name":"evaluate","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":61,"character":9}]},{"id":71,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":72,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":60,"character":8}]},{"id":63,"name":"updateTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":64,"name":"updateTarget","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":65,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":57,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[53]},{"title":"Methods","kind":2048,"children":[68,66,73,71,63]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":55,"character":46}]},{"id":34,"name":"InterpolationBinding","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":35,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":36,"name":"new InterpolationBinding","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":37,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":38,"name":"parts","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":39,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":40,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":41,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":42,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"InterpolationBinding","id":34}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":48,"character":43}]},{"id":47,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":48,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":49,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":52,"character":6}]},{"id":43,"name":"interpolate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":44,"name":"interpolate","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":50,"character":13}]},{"id":50,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":51,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":53,"character":8}]},{"id":45,"name":"updateOneTimeBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":46,"name":"updateOneTimeBindings","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":51,"character":23}]}],"groups":[{"title":"Constructors","kind":512,"children":[35]},{"title":"Methods","kind":2048,"children":[47,43,50,45]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":48,"character":41}]},{"id":22,"name":"InterpolationBindingExpression","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":23,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":24,"name":"new InterpolationBindingExpression","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":25,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":26,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":27,"name":"parts","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":28,"name":"mode","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":29,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":30,"name":"attribute","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"InterpolationBindingExpression","id":22}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":44,"character":53}]},{"id":31,"name":"createBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":32,"name":"createBinding","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":33,"name":"target","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":46,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[23]},{"title":"Methods","kind":2048,"children":[31]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":44,"character":51}]},{"id":86,"name":"LetBinding","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":87,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":88,"name":"new LetBinding","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{},"parameters":[{"id":89,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":90,"name":"sourceExpression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":91,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":92,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":93,"name":"toBindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"indicates let binding result should be assigned to binding context\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"LetBinding","id":86}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":75,"character":33}]},{"id":99,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":100,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{},"parameters":[{"id":101,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Binding context\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":92,"character":6}]},{"id":96,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":97,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":98,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":87,"character":6}]},{"id":104,"name":"connect","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":105,"name":"connect","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":94,"character":9}]},{"id":102,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":103,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":93,"character":8}]},{"id":94,"name":"updateTarget","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":95,"name":"updateTarget","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":86,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[87]},{"title":"Methods","kind":2048,"children":[99,96,104,102,94]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":75,"character":31}]},{"id":76,"name":"LetExpression","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":77,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":78,"name":"new LetExpression","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{},"parameters":[{"id":79,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":80,"name":"targetProperty","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":81,"name":"sourceExpression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":82,"name":"lookupFunctions","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":83,"name":"toBindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"indicates let binding result should be assigned to binding context\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"LetExpression","id":76}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":63,"character":36}]},{"id":84,"name":"createBinding","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":85,"name":"createBinding","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":73,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[77]},{"title":"Methods","kind":2048,"children":[84]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":63,"character":34}]},{"id":106,"name":"SyntaxInterpreter","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":108,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":109,"name":"new SyntaxInterpreter","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":110,"name":"parser","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":111,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":112,"name":"eventManager","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":113,"name":"attributeMap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SyntaxInterpreter","id":106}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":99,"character":21}]},{"id":107,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":99,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":133,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":134,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":135,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":136,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":137,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":138,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":139,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":104,"character":6}]},{"id":155,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":156,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":157,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":158,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":159,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":160,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":108,"character":6}]},{"id":145,"name":"capture","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":146,"name":"capture","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":147,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":148,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":149,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":106,"character":9}]},{"id":150,"name":"delegate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":151,"name":"delegate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":152,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":153,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":154,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":107,"character":10}]},{"id":128,"name":"determineDefaultBindingMode","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":129,"name":"determineDefaultBindingMode","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":130,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":131,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":132,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":103,"character":29}]},{"id":168,"name":"for","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":169,"name":"for","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":170,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":171,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":172,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":173,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":110,"character":7}]},{"id":186,"name":"from-view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":187,"name":"from-view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":188,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":189,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":190,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":191,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":113,"character":13}]},{"id":121,"name":"handleUnknownCommand","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":122,"name":"handleUnknownCommand","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":123,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":124,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":125,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":126,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":127,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":102,"character":22}]},{"id":114,"name":"interpret","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":115,"name":"interpret","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":116,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":117,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":118,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":119,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":120,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":101,"character":11}]},{"id":192,"name":"one-time","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":193,"name":"one-time","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":194,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":195,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":196,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":197,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":114,"character":12}]},{"id":161,"name":"options","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":162,"name":"options","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":163,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":164,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":165,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":166,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":167,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":109,"character":9}]},{"id":180,"name":"to-view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":181,"name":"to-view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":182,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":183,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":184,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":185,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":112,"character":11}]},{"id":140,"name":"trigger","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":141,"name":"trigger","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":142,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":143,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":144,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":105,"character":9}]},{"id":174,"name":"two-way","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":175,"name":"two-way","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":176,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":177,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":178,"name":"info","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":179,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":111,"character":11}]}],"groups":[{"title":"Constructors","kind":512,"children":[108]},{"title":"Properties","kind":1024,"children":[107]},{"title":"Methods","kind":2048,"children":[133,155,145,150,128,168,186,121,114,192,161,180,140,174]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":98,"character":38}]},{"id":198,"name":"TemplatingBindingLanguage","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":200,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":201,"name":"new TemplatingBindingLanguage","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":202,"name":"parser","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":203,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":204,"name":"syntaxInterpreter","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":205,"name":"attributeMap","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"TemplatingBindingLanguage","id":198}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":117,"character":21}]},{"id":199,"name":"inject","kind":1024,"kindString":"Property","flags":{"isStatic":true,"isExported":true},"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":117,"character":15}],"type":{"type":"intrinsic","name":"any"}},{"id":212,"name":"createAttributeInstruction","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":213,"name":"createAttributeInstruction","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":214,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":215,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":216,"name":"theInfo","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":217,"name":"existingInstruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":218,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.createAttributeInstruction"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":120,"character":28}],"overwrites":{"type":"reference","name":"BindingLanguage.createAttributeInstruction"}},{"id":219,"name":"createLetExpressions","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":220,"name":"createLetExpressions","kind":4096,"kindString":"Call signature","flags":{},"comment":{},"parameters":[{"id":221,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{},"type":{"type":"intrinsic","name":"any"}},{"id":222,"name":"letElement","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":126,"character":22}]},{"id":206,"name":"inspectAttribute","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":207,"name":"inspectAttribute","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":208,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":209,"name":"elementName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":210,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":211,"name":"attrValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.inspectAttribute"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":119,"character":18}],"overwrites":{"type":"reference","name":"BindingLanguage.inspectAttribute"}},{"id":223,"name":"inspectTextContent","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":224,"name":"inspectTextContent","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":225,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":226,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"BindingLanguage.inspectTextContent"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":127,"character":20}],"overwrites":{"type":"reference","name":"BindingLanguage.inspectTextContent"}},{"id":227,"name":"parseInterpolation","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":228,"name":"parseInterpolation","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":229,"name":"resources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":230,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":128,"character":20}]}],"groups":[{"title":"Constructors","kind":512,"children":[200]},{"title":"Properties","kind":1024,"children":[199]},{"title":"Methods","kind":2048,"children":[212,219,206,223,227]}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":116,"character":46}],"extendedTypes":[{"type":"reference","name":"BindingLanguage"}]},{"id":231,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":232,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":233,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-binding.d.ts","line":130,"character":33}]}],"groups":[{"title":"Classes","kind":128,"children":[2,52,34,22,86,76,106,198]},{"title":"Functions","kind":64,"children":[231]}]} \ No newline at end of file diff --git a/package.json b/package.json index 856b2f6..7030d68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-binding", - "version": "1.5.0", + "version": "1.5.1", "description": "An implementation of the templating engine's Binding Language abstraction which uses a pluggable command syntax.", "keywords": [ "aurelia",