From 9f37d02ce83d8e27fbef44f7f7c17abcc1448a9f Mon Sep 17 00:00:00 2001 From: EisenbergEffect Date: Sun, 1 Jul 2018 21:01:49 -0700 Subject: [PATCH] chore(all): prepare release 1.7.0 --- bower.json | 4 +- dist/amd/attr-binding-behavior.js | 6 +- dist/amd/aurelia-templating-resources.js | 8 +- dist/amd/binding-mode-behaviors.js | 28 ++- dist/amd/compose.js | 59 ++--- dist/amd/debounce-binding-behavior.js | 10 +- dist/amd/focus.js | 12 +- dist/amd/hide.js | 10 +- dist/amd/repeat.js | 13 +- dist/amd/self-binding-behavior.js | 9 +- dist/amd/show.js | 10 +- dist/amd/signal-binding-behavior.js | 8 +- dist/amd/throttle-binding-behavior.js | 6 +- dist/amd/update-trigger-binding-behavior.js | 6 +- dist/aurelia-templating-resources.d.ts | 12 +- dist/aurelia-templating-resources.js | 237 +++++++++++------- dist/commonjs/attr-binding-behavior.js | 6 +- dist/commonjs/aurelia-templating-resources.js | 8 +- dist/commonjs/binding-mode-behaviors.js | 28 ++- dist/commonjs/compose.js | 44 ++-- dist/commonjs/debounce-binding-behavior.js | 10 +- dist/commonjs/focus.js | 12 +- dist/commonjs/hide.js | 10 +- dist/commonjs/repeat.js | 13 +- dist/commonjs/self-binding-behavior.js | 9 +- dist/commonjs/show.js | 10 +- dist/commonjs/signal-binding-behavior.js | 8 +- dist/commonjs/throttle-binding-behavior.js | 6 +- .../update-trigger-binding-behavior.js | 6 +- dist/es2015/attr-binding-behavior.js | 8 +- dist/es2015/aurelia-templating-resources.js | 7 +- dist/es2015/binding-mode-behaviors.js | 30 ++- dist/es2015/compose.js | 42 ++-- dist/es2015/debounce-binding-behavior.js | 12 +- dist/es2015/focus.js | 12 +- dist/es2015/hide.js | 13 +- dist/es2015/repeat.js | 7 + dist/es2015/self-binding-behavior.js | 8 +- dist/es2015/show.js | 13 +- dist/es2015/signal-binding-behavior.js | 7 +- dist/es2015/throttle-binding-behavior.js | 8 +- .../es2015/update-trigger-binding-behavior.js | 8 +- dist/native-modules/attr-binding-behavior.js | 8 +- .../aurelia-templating-resources.js | 7 +- dist/native-modules/binding-mode-behaviors.js | 30 ++- dist/native-modules/compose.js | 41 +-- .../debounce-binding-behavior.js | 12 +- dist/native-modules/focus.js | 11 +- dist/native-modules/hide.js | 12 +- dist/native-modules/repeat.js | 13 +- dist/native-modules/self-binding-behavior.js | 8 +- dist/native-modules/show.js | 12 +- .../native-modules/signal-binding-behavior.js | 7 +- .../throttle-binding-behavior.js | 8 +- .../update-trigger-binding-behavior.js | 8 +- dist/system/attr-binding-behavior.js | 7 +- dist/system/aurelia-templating-resources.js | 16 +- dist/system/binding-mode-behaviors.js | 33 ++- dist/system/compose.js | 43 ++-- dist/system/debounce-binding-behavior.js | 11 +- dist/system/focus.js | 14 +- dist/system/hide.js | 11 +- dist/system/repeat.js | 13 +- dist/system/self-binding-behavior.js | 12 +- dist/system/show.js | 11 +- dist/system/signal-binding-behavior.js | 12 +- dist/system/throttle-binding-behavior.js | 7 +- .../system/update-trigger-binding-behavior.js | 7 +- dist/temp/aurelia-templating-resources.js | 190 ++++++++------ doc/CHANGELOG.md | 5 + doc/api.json | 2 +- package.json | 8 +- 72 files changed, 836 insertions(+), 526 deletions(-) diff --git a/bower.json b/bower.json index c396338..2163e29 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "1.6.1", + "version": "1.7.0", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia", @@ -27,6 +27,6 @@ "aurelia-pal": "^1.3.0", "aurelia-path": "^1.0.0", "aurelia-task-queue": "^1.0.0", - "aurelia-templating": "^1.5.0" + "aurelia-templating": "^1.8.1" } } diff --git a/dist/amd/attr-binding-behavior.js b/dist/amd/attr-binding-behavior.js index 867777e..9124e93 100644 --- a/dist/amd/attr-binding-behavior.js +++ b/dist/amd/attr-binding-behavior.js @@ -8,7 +8,9 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { - var AttrBindingBehavior = exports.AttrBindingBehavior = function () { + var _dec, _class; + + var AttrBindingBehavior = exports.AttrBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('attr'), _dec(_class = function () { function AttrBindingBehavior() { } @@ -20,5 +22,5 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {}; return AttrBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/aurelia-templating-resources.js b/dist/amd/aurelia-templating-resources.js index 1c276de..5f81e3c 100644 --- a/dist/amd/aurelia-templating-resources.js +++ b/dist/amd/aurelia-templating-resources.js @@ -1,16 +1,16 @@ -define(['exports', 'aurelia-pal', './compose', './if', './else', './with', './repeat', './show', './hide', './sanitize-html', './replaceable', './focus', 'aurelia-templating', './css-resource', './html-sanitizer', './attr-binding-behavior', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './self-binding-behavior', './signal-binding-behavior', './binding-signaler', './update-trigger-binding-behavior', './abstract-repeater', './repeat-strategy-locator', './html-resource-plugin', './null-repeat-strategy', './array-repeat-strategy', './map-repeat-strategy', './set-repeat-strategy', './number-repeat-strategy', './repeat-utilities', './analyze-view-factory', './aurelia-hide-style'], function (exports, _aureliaPal, _compose, _if, _else, _with, _repeat, _show, _hide, _sanitizeHtml, _replaceable, _focus, _aureliaTemplating, _cssResource, _htmlSanitizer, _attrBindingBehavior, _bindingModeBehaviors, _throttleBindingBehavior, _debounceBindingBehavior, _selfBindingBehavior, _signalBindingBehavior, _bindingSignaler, _updateTriggerBindingBehavior, _abstractRepeater, _repeatStrategyLocator, _htmlResourcePlugin, _nullRepeatStrategy, _arrayRepeatStrategy, _mapRepeatStrategy, _setRepeatStrategy, _numberRepeatStrategy, _repeatUtilities, _analyzeViewFactory, _aureliaHideStyle) { +define(['exports', './compose', './if', './else', './with', './repeat', './show', './hide', './sanitize-html', './replaceable', './focus', 'aurelia-templating', './css-resource', './html-sanitizer', './attr-binding-behavior', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './self-binding-behavior', './signal-binding-behavior', './binding-signaler', './update-trigger-binding-behavior', './abstract-repeater', './repeat-strategy-locator', './html-resource-plugin', './null-repeat-strategy', './array-repeat-strategy', './map-repeat-strategy', './set-repeat-strategy', './number-repeat-strategy', './repeat-utilities', './analyze-view-factory', './aurelia-hide-style'], function (exports, _compose, _if, _else, _with, _repeat, _show, _hide, _sanitizeHtml, _replaceable, _focus, _aureliaTemplating, _cssResource, _htmlSanitizer, _attrBindingBehavior, _bindingModeBehaviors, _throttleBindingBehavior, _debounceBindingBehavior, _selfBindingBehavior, _signalBindingBehavior, _bindingSignaler, _updateTriggerBindingBehavior, _abstractRepeater, _repeatStrategyLocator, _htmlResourcePlugin, _nullRepeatStrategy, _arrayRepeatStrategy, _mapRepeatStrategy, _setRepeatStrategy, _numberRepeatStrategy, _repeatUtilities, _analyzeViewFactory, _aureliaHideStyle) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); - exports.viewsRequireLifecycle = exports.unwrapExpression = exports.updateOneTimeBinding = exports.isOneTime = exports.getItemsSourceExpression = exports.updateOverrideContext = exports.createFullOverrideContext = exports.NumberRepeatStrategy = exports.SetRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.NullRepeatStrategy = exports.RepeatStrategyLocator = exports.AbstractRepeater = exports.UpdateTriggerBindingBehavior = exports.BindingSignaler = exports.SignalBindingBehavior = exports.SelfBindingBehavior = exports.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.AttrBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = exports.Else = exports.If = exports.Compose = undefined; + exports.viewsRequireLifecycle = exports.unwrapExpression = exports.updateOneTimeBinding = exports.isOneTime = exports.getItemsSourceExpression = exports.updateOverrideContext = exports.createFullOverrideContext = exports.NumberRepeatStrategy = exports.SetRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.NullRepeatStrategy = exports.RepeatStrategyLocator = exports.AbstractRepeater = exports.UpdateTriggerBindingBehavior = exports.BindingSignaler = exports.SignalBindingBehavior = exports.SelfBindingBehavior = exports.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.FromViewBindingBehavior = exports.ToViewBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.AttrBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = exports.Else = exports.If = exports.Compose = undefined; function configure(config) { (0, _aureliaHideStyle.injectAureliaHideStyleAtHead)(); - config.globalResources(_aureliaPal.PLATFORM.moduleName('./compose'), _aureliaPal.PLATFORM.moduleName('./if'), _aureliaPal.PLATFORM.moduleName('./else'), _aureliaPal.PLATFORM.moduleName('./with'), _aureliaPal.PLATFORM.moduleName('./repeat'), _aureliaPal.PLATFORM.moduleName('./show'), _aureliaPal.PLATFORM.moduleName('./hide'), _aureliaPal.PLATFORM.moduleName('./replaceable'), _aureliaPal.PLATFORM.moduleName('./sanitize-html'), _aureliaPal.PLATFORM.moduleName('./focus'), _aureliaPal.PLATFORM.moduleName('./binding-mode-behaviors'), _aureliaPal.PLATFORM.moduleName('./self-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./throttle-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./debounce-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./signal-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./update-trigger-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./attr-binding-behavior')); + config.globalResources(_compose.Compose, _if.If, _else.Else, _with.With, _repeat.Repeat, _show.Show, _hide.Hide, _replaceable.Replaceable, _focus.Focus, _sanitizeHtml.SanitizeHTMLValueConverter, _bindingModeBehaviors.OneTimeBindingBehavior, _bindingModeBehaviors.OneWayBindingBehavior, _bindingModeBehaviors.ToViewBindingBehavior, _bindingModeBehaviors.FromViewBindingBehavior, _bindingModeBehaviors.TwoWayBindingBehavior, _throttleBindingBehavior.ThrottleBindingBehavior, _debounceBindingBehavior.DebounceBindingBehavior, _signalBindingBehavior.SignalBindingBehavior, _updateTriggerBindingBehavior.UpdateTriggerBindingBehavior, _attrBindingBehavior.AttrBindingBehavior); (0, _htmlResourcePlugin.configure)(config); @@ -42,6 +42,8 @@ define(['exports', 'aurelia-pal', './compose', './if', './else', './with', './re exports.AttrBindingBehavior = _attrBindingBehavior.AttrBindingBehavior; exports.OneTimeBindingBehavior = _bindingModeBehaviors.OneTimeBindingBehavior; exports.OneWayBindingBehavior = _bindingModeBehaviors.OneWayBindingBehavior; + exports.ToViewBindingBehavior = _bindingModeBehaviors.ToViewBindingBehavior; + exports.FromViewBindingBehavior = _bindingModeBehaviors.FromViewBindingBehavior; exports.TwoWayBindingBehavior = _bindingModeBehaviors.TwoWayBindingBehavior; exports.ThrottleBindingBehavior = _throttleBindingBehavior.ThrottleBindingBehavior; exports.DebounceBindingBehavior = _debounceBindingBehavior.DebounceBindingBehavior; diff --git a/dist/amd/binding-mode-behaviors.js b/dist/amd/binding-mode-behaviors.js index 80cc1fa..851d655 100644 --- a/dist/amd/binding-mode-behaviors.js +++ b/dist/amd/binding-mode-behaviors.js @@ -4,11 +4,11 @@ define(['exports', 'aurelia-binding', 'aurelia-metadata'], function (exports, _a Object.defineProperty(exports, "__esModule", { value: true }); - exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = undefined; + exports.TwoWayBindingBehavior = exports.FromViewBindingBehavior = exports.ToViewBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = undefined; - var _dec, _class, _dec2, _class2, _dec3, _class3; + var _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec7, _dec8, _class4, _dec9, _dec10, _class5; var modeBindingBehavior = { bind: function bind(binding, source, lookupFunctions) { @@ -21,19 +21,29 @@ define(['exports', 'aurelia-binding', 'aurelia-metadata'], function (exports, _a } }; - var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec(_class = function OneTimeBindingBehavior() { + var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec2 = (0, _aureliaBinding.bindingBehavior)('oneTime'), _dec(_class = _dec2(_class = function OneTimeBindingBehavior() { this.mode = _aureliaBinding.bindingMode.oneTime; - }) || _class); - var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec2 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec2(_class2 = function OneWayBindingBehavior() { + }) || _class) || _class); + var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec3 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec4 = (0, _aureliaBinding.bindingBehavior)('oneWay'), _dec3(_class2 = _dec4(_class2 = function OneWayBindingBehavior() { - this.mode = _aureliaBinding.bindingMode.oneWay; - }) || _class2); - var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec3 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec3(_class3 = function TwoWayBindingBehavior() { + this.mode = _aureliaBinding.bindingMode.toView; + }) || _class2) || _class2); + var ToViewBindingBehavior = exports.ToViewBindingBehavior = (_dec5 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec6 = (0, _aureliaBinding.bindingBehavior)('toView'), _dec5(_class3 = _dec6(_class3 = function ToViewBindingBehavior() { + + + this.mode = _aureliaBinding.bindingMode.toView; + }) || _class3) || _class3); + var FromViewBindingBehavior = exports.FromViewBindingBehavior = (_dec7 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec8 = (0, _aureliaBinding.bindingBehavior)('fromView'), _dec7(_class4 = _dec8(_class4 = function FromViewBindingBehavior() { + + + this.mode = _aureliaBinding.bindingMode.fromView; + }) || _class4) || _class4); + var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec9 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec10 = (0, _aureliaBinding.bindingBehavior)('twoWay'), _dec9(_class5 = _dec10(_class5 = function TwoWayBindingBehavior() { this.mode = _aureliaBinding.bindingMode.twoWay; - }) || _class3); + }) || _class5) || _class5); }); \ No newline at end of file diff --git a/dist/amd/compose.js b/dist/amd/compose.js index f7f078f..eeea20b 100644 --- a/dist/amd/compose.js +++ b/dist/amd/compose.js @@ -1,4 +1,4 @@ -define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-task-queue', 'aurelia-templating', 'aurelia-pal'], function (exports, _aureliaDependencyInjection, _aureliaLogging, _aureliaTaskQueue, _aureliaTemplating, _aureliaPal) { +define(['exports', 'aurelia-dependency-injection', 'aurelia-task-queue', 'aurelia-templating', 'aurelia-pal'], function (exports, _aureliaDependencyInjection, _aureliaTaskQueue, _aureliaTemplating, _aureliaPal) { 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -6,25 +6,6 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-t }); exports.Compose = undefined; - var LogManager = _interopRequireWildcard(_aureliaLogging); - - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; - } - } - - newObj.default = obj; - return newObj; - } - } - function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { @@ -70,11 +51,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-t throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.'); } - var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; + var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; - var logger = LogManager.getLogger('templating-resources'); + var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('compose'), _dec(_class = (0, _aureliaTemplating.noView)(_class = (_class2 = function () { + Compose.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue]; + }; - var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('compose'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue), _dec(_class = (0, _aureliaTemplating.noView)(_class = _dec2(_class = (_class2 = function () { function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { @@ -107,12 +90,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-t this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } }; Compose.prototype.unbind = function unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; var returnToCache = true; @@ -148,7 +132,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-t }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'swapOrder', [_aureliaTemplating.bindable], { enumerable: true, initializer: null - })), _class2)) || _class) || _class) || _class); + })), _class2)) || _class) || _class); function isEmpty(obj) { @@ -203,20 +187,21 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-logging', 'aurelia-t }); } - composer.pendingTask = composer.pendingTask.catch(function (e) { - logger.error(e); - }).then(function () { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(function () { + completeCompositionTask(composer); + }, function (reason) { + completeCompositionTask(composer); + throw reason; }); } + function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } + } + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; diff --git a/dist/amd/debounce-binding-behavior.js b/dist/amd/debounce-binding-behavior.js index 3c4aed1..7c2f394 100644 --- a/dist/amd/debounce-binding-behavior.js +++ b/dist/amd/debounce-binding-behavior.js @@ -8,6 +8,8 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { + var _dec, _class; + var unset = {}; function debounceCallSource(event) { @@ -34,13 +36,13 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { state.oldValue = oldValue; } state.timeoutId = setTimeout(function () { - var ov = state.oldValue; + var _oldValue = state.oldValue; state.oldValue = unset; - _this2.debouncedMethod(context, newValue, ov); + _this2.debouncedMethod(context, newValue, _oldValue); }, state.delay); } - var DebounceBindingBehavior = exports.DebounceBindingBehavior = function () { + var DebounceBindingBehavior = exports.DebounceBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('debounce'), _dec(_class = function () { function DebounceBindingBehavior() { } @@ -76,5 +78,5 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { }; return DebounceBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/focus.js b/dist/amd/focus.js index fe6402d..4033a30 100644 --- a/dist/amd/focus.js +++ b/dist/amd/focus.js @@ -1,4 +1,4 @@ -define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency-injection', 'aurelia-task-queue', 'aurelia-pal'], function (exports, _aureliaTemplating, _aureliaBinding, _aureliaDependencyInjection, _aureliaTaskQueue, _aureliaPal) { +define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-task-queue', 'aurelia-pal'], function (exports, _aureliaTemplating, _aureliaBinding, _aureliaTaskQueue, _aureliaPal) { 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -8,9 +8,13 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency- - var _dec, _dec2, _class; + var _dec, _class; + + var Focus = exports.Focus = (_dec = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec(_class = function () { + Focus.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue]; + }; - var Focus = exports.Focus = (_dec = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue), _dec(_class = _dec2(_class = function () { function Focus(element, taskQueue) { @@ -67,5 +71,5 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency- }; return Focus; - }()) || _class) || _class); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/hide.js b/dist/amd/hide.js index f5d3eca..d2cf19b 100644 --- a/dist/amd/hide.js +++ b/dist/amd/hide.js @@ -8,9 +8,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aureli - var _dec, _dec2, _class; + var _dec, _class; + + var Hide = exports.Hide = (_dec = (0, _aureliaTemplating.customAttribute)('hide'), _dec(_class = function () { + Hide.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; - var Hide = exports.Hide = (_dec = (0, _aureliaTemplating.customAttribute)('hide'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec(_class = _dec2(_class = function () { function Hide(element, animator, domBoundary) { @@ -36,5 +40,5 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aureli }; return Hide; - }()) || _class) || _class); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/repeat.js b/dist/amd/repeat.js index 2c06e84..c6571aa 100644 --- a/dist/amd/repeat.js +++ b/dist/amd/repeat.js @@ -138,6 +138,8 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t }; Repeat.prototype.itemsChanged = function itemsChanged() { + var _this2 = this; + this._unsubscribeCollection(); if (!this.scope) { @@ -153,7 +155,11 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(function () { + _this2.ignoreMutation = false; + }); }; Repeat.prototype._getInnerCollection = function _getInnerCollection() { @@ -168,11 +174,14 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); }; Repeat.prototype.handleInnerCollectionMutated = function handleInnerCollectionMutated(collection, changes) { - var _this2 = this; + var _this3 = this; if (!this.collectionObserver) { return; @@ -184,7 +193,7 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', 'aurelia-t this.ignoreMutation = true; var newItems = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); this.observerLocator.taskQueue.queueMicroTask(function () { - return _this2.ignoreMutation = false; + return _this3.ignoreMutation = false; }); if (newItems === this.items) { diff --git a/dist/amd/self-binding-behavior.js b/dist/amd/self-binding-behavior.js index 128dfd6..5e8648a 100644 --- a/dist/amd/self-binding-behavior.js +++ b/dist/amd/self-binding-behavior.js @@ -1,12 +1,15 @@ -define(['exports'], function (exports) { +define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); + exports.SelfBindingBehavior = undefined; + var _dec, _class; + function findOriginalEventTarget(event) { return event.path && event.path[0] || event.deepPath && event.deepPath[0] || event.target; } @@ -17,7 +20,7 @@ define(['exports'], function (exports) { this.selfEventCallSource(event); } - var SelfBindingBehavior = exports.SelfBindingBehavior = function () { + var SelfBindingBehavior = exports.SelfBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('self'), _dec(_class = function () { function SelfBindingBehavior() { } @@ -34,5 +37,5 @@ define(['exports'], function (exports) { }; return SelfBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/show.js b/dist/amd/show.js index e02ce52..f639024 100644 --- a/dist/amd/show.js +++ b/dist/amd/show.js @@ -8,9 +8,13 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aureli - var _dec, _dec2, _class; + var _dec, _class; + + var Show = exports.Show = (_dec = (0, _aureliaTemplating.customAttribute)('show'), _dec(_class = function () { + Show.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; - var Show = exports.Show = (_dec = (0, _aureliaTemplating.customAttribute)('show'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec(_class = _dec2(_class = function () { function Show(element, animator, domBoundary) { @@ -36,5 +40,5 @@ define(['exports', 'aurelia-dependency-injection', 'aurelia-templating', 'aureli }; return Show; - }()) || _class) || _class); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/signal-binding-behavior.js b/dist/amd/signal-binding-behavior.js index 4b531aa..a407002 100644 --- a/dist/amd/signal-binding-behavior.js +++ b/dist/amd/signal-binding-behavior.js @@ -1,4 +1,4 @@ -define(['exports', './binding-signaler'], function (exports, _bindingSignaler) { +define(['exports', 'aurelia-binding', './binding-signaler'], function (exports, _aureliaBinding, _bindingSignaler) { 'use strict'; Object.defineProperty(exports, "__esModule", { @@ -8,7 +8,9 @@ define(['exports', './binding-signaler'], function (exports, _bindingSignaler) { - var SignalBindingBehavior = exports.SignalBindingBehavior = function () { + var _dec, _class; + + var SignalBindingBehavior = exports.SignalBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('signal'), _dec(_class = function () { SignalBindingBehavior.inject = function inject() { return [_bindingSignaler.BindingSignaler]; }; @@ -60,5 +62,5 @@ define(['exports', './binding-signaler'], function (exports, _bindingSignaler) { }; return SignalBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/throttle-binding-behavior.js b/dist/amd/throttle-binding-behavior.js index 46da056..77bb51e 100644 --- a/dist/amd/throttle-binding-behavior.js +++ b/dist/amd/throttle-binding-behavior.js @@ -8,6 +8,8 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { + var _dec, _class; + function throttle(newValue) { var _this = this; @@ -30,7 +32,7 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { } } - var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = function () { + var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('throttle'), _dec(_class = function () { function ThrottleBindingBehavior() { } @@ -66,5 +68,5 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { }; return ThrottleBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/amd/update-trigger-binding-behavior.js b/dist/amd/update-trigger-binding-behavior.js index 04da1ab..03e6129 100644 --- a/dist/amd/update-trigger-binding-behavior.js +++ b/dist/amd/update-trigger-binding-behavior.js @@ -8,10 +8,12 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { + var _dec, _class; + var eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; var notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; - var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = function () { + var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('updateTrigger'), _dec(_class = function () { function UpdateTriggerBindingBehavior() { } @@ -47,5 +49,5 @@ define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) { }; return UpdateTriggerBindingBehavior; - }(); + }()) || _class); }); \ No newline at end of file diff --git a/dist/aurelia-templating-resources.d.ts b/dist/aurelia-templating-resources.d.ts index 0be5dba..f8fc27b 100644 --- a/dist/aurelia-templating-resources.d.ts +++ b/dist/aurelia-templating-resources.d.ts @@ -1,4 +1,3 @@ -import * as LogManager from 'aurelia-logging'; import { inject, Container, @@ -27,6 +26,7 @@ import { createOverrideContext, bindingMode, EventSubscriber, + bindingBehavior, BindingBehavior, ValueConverter, sourceContext, @@ -210,6 +210,7 @@ export declare class HTMLSanitizer { * CustomAttribute that binds provided DOM element's focus attribute with a property on the viewmodel. */ export declare class Focus { + static inject(): any; /** * Creates an instance of Focus. @@ -244,6 +245,7 @@ export declare class DebounceBindingBehavior { * Used to compose a new view / view-model template or bind to an existing instance. */ export declare class Compose { + static inject(): any; model: any; view: any; viewModel: any; @@ -311,6 +313,12 @@ export declare class OneTimeBindingBehavior { export declare class OneWayBindingBehavior { constructor(); } +export declare class ToViewBindingBehavior { + constructor(); +} +export declare class FromViewBindingBehavior { + constructor(); +} export declare class TwoWayBindingBehavior { constructor(); } @@ -583,6 +591,7 @@ export declare class SignalBindingBehavior { * - different from "if" in that the markup is still added to the DOM, simply not shown. */ export declare class Hide { + static inject(): any; /** * Creates a new instance of Hide. @@ -614,6 +623,7 @@ export declare class Hide { * - different from "if" in that the markup is still added to the DOM, simply not shown. */ export declare class Show { + static inject(): any; /** * Creates a new instance of Show. diff --git a/dist/aurelia-templating-resources.js b/dist/aurelia-templating-resources.js index 3e34927..fcb4fad 100644 --- a/dist/aurelia-templating-resources.js +++ b/dist/aurelia-templating-resources.js @@ -1,7 +1,6 @@ -import * as LogManager from 'aurelia-logging'; import {inject,Container,Optional} from 'aurelia-dependency-injection'; import {BoundViewFactory,ViewSlot,customAttribute,templateController,useView,customElement,bindable,ViewResources,resource,ViewCompileInstruction,CompositionEngine,CompositionContext,noView,View,ViewEngine,Animator,TargetInstruction} from 'aurelia-templating'; -import {createOverrideContext,bindingMode,EventSubscriber,BindingBehavior,ValueConverter,sourceContext,targetContext,DataAttributeObserver,mergeSplice,valueConverter,ObserverLocator} from 'aurelia-binding'; +import {createOverrideContext,bindingMode,EventSubscriber,bindingBehavior,BindingBehavior,ValueConverter,sourceContext,targetContext,DataAttributeObserver,mergeSplice,valueConverter,ObserverLocator} from 'aurelia-binding'; import {TaskQueue} from 'aurelia-task-queue'; import {DOM,FEATURE} from 'aurelia-pal'; import {Loader} from 'aurelia-loader'; @@ -67,6 +66,7 @@ export class With { const eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; const notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; +@bindingBehavior('updateTrigger') export class UpdateTriggerBindingBehavior { bind(binding, source, ...events) { @@ -122,6 +122,7 @@ function throttle(newValue) { } } +@bindingBehavior('throttle') export class ThrottleBindingBehavior { bind(binding, source, delay = 200) { // determine which method to throttle. @@ -169,6 +170,7 @@ function handleSelfEvent(event) { this.selfEventCallSource(event); } +@bindingBehavior('self') export class SelfBindingBehavior { bind(binding, source) { if (!binding.callSource || !binding.targetEvent) throw new Error('Self binding behavior only supports event.'); @@ -459,78 +461,81 @@ export class HTMLSanitizer { } } -/** -* CustomAttribute that binds provided DOM element's focus attribute with a property on the viewmodel. -*/ -@customAttribute('focus', bindingMode.twoWay) -@inject(DOM.Element, TaskQueue) -export class Focus { - /** - * Creates an instance of Focus. - * @paramelement Target element on where attribute is placed on. - * @param taskQueue The TaskQueue instance. - */ - constructor(element, taskQueue) { - this.element = element; - this.taskQueue = taskQueue; - this.isAttached = false; - this.needsApply = false; - } - - /** - * Invoked everytime the bound value changes. - * @param newValue The new value. - */ - valueChanged(newValue) { - if (this.isAttached) { - this._apply(); - } else { - this.needsApply = true; - } - } - - _apply() { - if (this.value) { - this.taskQueue.queueMicroTask(() => { - if (this.value) { - this.element.focus(); - } - }); - } else { - this.element.blur(); - } - } - - /** - * Invoked when the attribute is attached to the DOM. - */ - attached() { - this.isAttached = true; - if (this.needsApply) { - this.needsApply = false; - this._apply(); - } - this.element.addEventListener('focus', this); - this.element.addEventListener('blur', this); - } - - /** - * Invoked when the attribute is detached from the DOM. - */ - detached() { - this.isAttached = false; - this.element.removeEventListener('focus', this); - this.element.removeEventListener('blur', this); - } - - handleEvent(e) { - if (e.type === 'focus') { - this.value = true; - } else if (DOM.activeElement !== this.element) { - this.value = false; - } - } -} +/** +* CustomAttribute that binds provided DOM element's focus attribute with a property on the viewmodel. +*/ +@customAttribute('focus', bindingMode.twoWay) +export class Focus { + + static inject() { + return [DOM.Element, TaskQueue]; + } + /** + * Creates an instance of Focus. + * @paramelement Target element on where attribute is placed on. + * @param taskQueue The TaskQueue instance. + */ + constructor(element, taskQueue) { + this.element = element; + this.taskQueue = taskQueue; + this.isAttached = false; + this.needsApply = false; + } + + /** + * Invoked everytime the bound value changes. + * @param newValue The new value. + */ + valueChanged(newValue) { + if (this.isAttached) { + this._apply(); + } else { + this.needsApply = true; + } + } + + _apply() { + if (this.value) { + this.taskQueue.queueMicroTask(() => { + if (this.value) { + this.element.focus(); + } + }); + } else { + this.element.blur(); + } + } + + /** + * Invoked when the attribute is attached to the DOM. + */ + attached() { + this.isAttached = true; + if (this.needsApply) { + this.needsApply = false; + this._apply(); + } + this.element.addEventListener('focus', this); + this.element.addEventListener('blur', this); + } + + /** + * Invoked when the attribute is detached from the DOM. + */ + detached() { + this.isAttached = false; + this.element.removeEventListener('focus', this); + this.element.removeEventListener('blur', this); + } + + handleEvent(e) { + if (e.type === 'focus') { + this.value = true; + } else if (DOM.activeElement !== this.element) { + this.value = false; + } + } +} /*eslint padded-blocks:0*/ export function _createDynamicElement(name: string, viewUrl: string, bindableNames: string[]): Function { @@ -567,12 +572,13 @@ function debounceCall(context, newValue, oldValue) { state.oldValue = oldValue; } state.timeoutId = setTimeout(() => { - const ov = state.oldValue; + const _oldValue = state.oldValue; state.oldValue = unset; - this.debouncedMethod(context, newValue, ov); + this.debouncedMethod(context, newValue, _oldValue); }, state.delay); } +@bindingBehavior('debounce') export class DebounceBindingBehavior { bind(binding, source, delay = 200) { const isCallSource = binding.callSource !== undefined; @@ -685,15 +691,16 @@ export function _createCSSResource(address: string): Function { return ViewCSS; } -const logger = LogManager.getLogger('templating-resources'); - /** * Used to compose a new view / view-model template or bind to an existing instance. */ @customElement('compose') @noView -@inject(DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue) export class Compose { + + static inject() { + return [DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue]; + } /** * Model to bind the custom element to. * @@ -766,7 +773,9 @@ export class Compose { this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } } /** @@ -774,7 +783,6 @@ export class Compose { */ unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; let returnToCache = true; @@ -867,19 +875,20 @@ function processChanges(composer: Compose) { }); } - composer.pendingTask = composer.pendingTask.catch(e => { - logger.error(e); - }).then(() => { - if (!composer.pendingTask) { - // the element has been unbound - return; - } + composer.pendingTask = composer.pendingTask + .then(() => { + completeCompositionTask(composer); + }, reason => { + completeCompositionTask(composer); + throw reason; + }); +} - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } - }); +function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } } function requestUpdate(composer: Compose) { @@ -919,6 +928,7 @@ let modeBindingBehavior = { }; @mixin(modeBindingBehavior) +@bindingBehavior('oneTime') export class OneTimeBindingBehavior { constructor() { this.mode = bindingMode.oneTime; @@ -926,13 +936,31 @@ export class OneTimeBindingBehavior { } @mixin(modeBindingBehavior) +@bindingBehavior('oneWay') export class OneWayBindingBehavior { constructor() { - this.mode = bindingMode.oneWay; + this.mode = bindingMode.toView; } } @mixin(modeBindingBehavior) +@bindingBehavior('toView') +export class ToViewBindingBehavior { + constructor() { + this.mode = bindingMode.toView; + } +} + +@mixin(modeBindingBehavior) +@bindingBehavior('fromView') +export class FromViewBindingBehavior { + constructor() { + this.mode = bindingMode.fromView; + } +} + +@mixin(modeBindingBehavior) +@bindingBehavior('twoWay') export class TwoWayBindingBehavior { constructor() { this.mode = bindingMode.twoWay; @@ -954,6 +982,7 @@ export function injectAureliaHideStyleAtBoundary(domBoundary) { } } +@bindingBehavior('attr') export class AttrBindingBehavior { bind(binding, source) { binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty); @@ -1837,6 +1866,7 @@ export function configure(config) { }); } +@bindingBehavior('signal') export class SignalBindingBehavior { static inject() { return [BindingSignaler]; } signals; @@ -1891,8 +1921,12 @@ export class SignalBindingBehavior { * - different from "if" in that the markup is still added to the DOM, simply not shown. */ @customAttribute('hide') -@inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)) export class Hide { + + static inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + } + /** * Creates a new instance of Hide. * @param element Target element to conditionally hide. @@ -1937,8 +1971,12 @@ export class Hide { * - different from "if" in that the markup is still added to the DOM, simply not shown. */ @customAttribute('show') -@inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)) export class Show { + + static inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + } + /** * Creates a new instance of Show. * @param element Target element to conditionally show. @@ -2147,7 +2185,11 @@ export class Repeat extends AbstractRepeater { if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(() => { + this.ignoreMutation = false; + }); } _getInnerCollection() { @@ -2165,6 +2207,9 @@ export class Repeat extends AbstractRepeater { if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); } diff --git a/dist/commonjs/attr-binding-behavior.js b/dist/commonjs/attr-binding-behavior.js index e756427..5c8fc03 100644 --- a/dist/commonjs/attr-binding-behavior.js +++ b/dist/commonjs/attr-binding-behavior.js @@ -5,11 +5,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.AttrBindingBehavior = undefined; +var _dec, _class; + var _aureliaBinding = require('aurelia-binding'); -var AttrBindingBehavior = exports.AttrBindingBehavior = function () { +var AttrBindingBehavior = exports.AttrBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('attr'), _dec(_class = function () { function AttrBindingBehavior() { } @@ -21,4 +23,4 @@ var AttrBindingBehavior = exports.AttrBindingBehavior = function () { AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {}; return AttrBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/aurelia-templating-resources.js b/dist/commonjs/aurelia-templating-resources.js index 00f17b3..e4c9273 100644 --- a/dist/commonjs/aurelia-templating-resources.js +++ b/dist/commonjs/aurelia-templating-resources.js @@ -3,9 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.viewsRequireLifecycle = exports.unwrapExpression = exports.updateOneTimeBinding = exports.isOneTime = exports.getItemsSourceExpression = exports.updateOverrideContext = exports.createFullOverrideContext = exports.NumberRepeatStrategy = exports.SetRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.NullRepeatStrategy = exports.RepeatStrategyLocator = exports.AbstractRepeater = exports.UpdateTriggerBindingBehavior = exports.BindingSignaler = exports.SignalBindingBehavior = exports.SelfBindingBehavior = exports.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.AttrBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = exports.Else = exports.If = exports.Compose = undefined; - -var _aureliaPal = require('aurelia-pal'); +exports.viewsRequireLifecycle = exports.unwrapExpression = exports.updateOneTimeBinding = exports.isOneTime = exports.getItemsSourceExpression = exports.updateOverrideContext = exports.createFullOverrideContext = exports.NumberRepeatStrategy = exports.SetRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.NullRepeatStrategy = exports.RepeatStrategyLocator = exports.AbstractRepeater = exports.UpdateTriggerBindingBehavior = exports.BindingSignaler = exports.SignalBindingBehavior = exports.SelfBindingBehavior = exports.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.FromViewBindingBehavior = exports.ToViewBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.AttrBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = exports.Else = exports.If = exports.Compose = undefined; var _compose = require('./compose'); @@ -74,7 +72,7 @@ var _aureliaHideStyle = require('./aurelia-hide-style'); function configure(config) { (0, _aureliaHideStyle.injectAureliaHideStyleAtHead)(); - config.globalResources(_aureliaPal.PLATFORM.moduleName('./compose'), _aureliaPal.PLATFORM.moduleName('./if'), _aureliaPal.PLATFORM.moduleName('./else'), _aureliaPal.PLATFORM.moduleName('./with'), _aureliaPal.PLATFORM.moduleName('./repeat'), _aureliaPal.PLATFORM.moduleName('./show'), _aureliaPal.PLATFORM.moduleName('./hide'), _aureliaPal.PLATFORM.moduleName('./replaceable'), _aureliaPal.PLATFORM.moduleName('./sanitize-html'), _aureliaPal.PLATFORM.moduleName('./focus'), _aureliaPal.PLATFORM.moduleName('./binding-mode-behaviors'), _aureliaPal.PLATFORM.moduleName('./self-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./throttle-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./debounce-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./signal-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./update-trigger-binding-behavior'), _aureliaPal.PLATFORM.moduleName('./attr-binding-behavior')); + config.globalResources(_compose.Compose, _if.If, _else.Else, _with.With, _repeat.Repeat, _show.Show, _hide.Hide, _replaceable.Replaceable, _focus.Focus, _sanitizeHtml.SanitizeHTMLValueConverter, _bindingModeBehaviors.OneTimeBindingBehavior, _bindingModeBehaviors.OneWayBindingBehavior, _bindingModeBehaviors.ToViewBindingBehavior, _bindingModeBehaviors.FromViewBindingBehavior, _bindingModeBehaviors.TwoWayBindingBehavior, _throttleBindingBehavior.ThrottleBindingBehavior, _debounceBindingBehavior.DebounceBindingBehavior, _signalBindingBehavior.SignalBindingBehavior, _updateTriggerBindingBehavior.UpdateTriggerBindingBehavior, _attrBindingBehavior.AttrBindingBehavior); (0, _htmlResourcePlugin.configure)(config); @@ -106,6 +104,8 @@ exports.configure = configure; exports.AttrBindingBehavior = _attrBindingBehavior.AttrBindingBehavior; exports.OneTimeBindingBehavior = _bindingModeBehaviors.OneTimeBindingBehavior; exports.OneWayBindingBehavior = _bindingModeBehaviors.OneWayBindingBehavior; +exports.ToViewBindingBehavior = _bindingModeBehaviors.ToViewBindingBehavior; +exports.FromViewBindingBehavior = _bindingModeBehaviors.FromViewBindingBehavior; exports.TwoWayBindingBehavior = _bindingModeBehaviors.TwoWayBindingBehavior; exports.ThrottleBindingBehavior = _throttleBindingBehavior.ThrottleBindingBehavior; exports.DebounceBindingBehavior = _debounceBindingBehavior.DebounceBindingBehavior; diff --git a/dist/commonjs/binding-mode-behaviors.js b/dist/commonjs/binding-mode-behaviors.js index ee42f64..8ed0607 100644 --- a/dist/commonjs/binding-mode-behaviors.js +++ b/dist/commonjs/binding-mode-behaviors.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = undefined; +exports.TwoWayBindingBehavior = exports.FromViewBindingBehavior = exports.ToViewBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = undefined; -var _dec, _class, _dec2, _class2, _dec3, _class3; +var _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec7, _dec8, _class4, _dec9, _dec10, _class5; var _aureliaBinding = require('aurelia-binding'); @@ -24,18 +24,28 @@ var modeBindingBehavior = { } }; -var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec(_class = function OneTimeBindingBehavior() { +var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec2 = (0, _aureliaBinding.bindingBehavior)('oneTime'), _dec(_class = _dec2(_class = function OneTimeBindingBehavior() { this.mode = _aureliaBinding.bindingMode.oneTime; -}) || _class); -var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec2 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec2(_class2 = function OneWayBindingBehavior() { +}) || _class) || _class); +var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec3 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec4 = (0, _aureliaBinding.bindingBehavior)('oneWay'), _dec3(_class2 = _dec4(_class2 = function OneWayBindingBehavior() { - this.mode = _aureliaBinding.bindingMode.oneWay; -}) || _class2); -var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec3 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec3(_class3 = function TwoWayBindingBehavior() { + this.mode = _aureliaBinding.bindingMode.toView; +}) || _class2) || _class2); +var ToViewBindingBehavior = exports.ToViewBindingBehavior = (_dec5 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec6 = (0, _aureliaBinding.bindingBehavior)('toView'), _dec5(_class3 = _dec6(_class3 = function ToViewBindingBehavior() { + + + this.mode = _aureliaBinding.bindingMode.toView; +}) || _class3) || _class3); +var FromViewBindingBehavior = exports.FromViewBindingBehavior = (_dec7 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec8 = (0, _aureliaBinding.bindingBehavior)('fromView'), _dec7(_class4 = _dec8(_class4 = function FromViewBindingBehavior() { + + + this.mode = _aureliaBinding.bindingMode.fromView; +}) || _class4) || _class4); +var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec9 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec10 = (0, _aureliaBinding.bindingBehavior)('twoWay'), _dec9(_class5 = _dec10(_class5 = function TwoWayBindingBehavior() { this.mode = _aureliaBinding.bindingMode.twoWay; -}) || _class3); \ No newline at end of file +}) || _class5) || _class5); \ No newline at end of file diff --git a/dist/commonjs/compose.js b/dist/commonjs/compose.js index 8afefe1..1bf0a55 100644 --- a/dist/commonjs/compose.js +++ b/dist/commonjs/compose.js @@ -5,22 +5,16 @@ Object.defineProperty(exports, "__esModule", { }); exports.Compose = undefined; -var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; +var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; var _aureliaDependencyInjection = require('aurelia-dependency-injection'); -var _aureliaLogging = require('aurelia-logging'); - -var LogManager = _interopRequireWildcard(_aureliaLogging); - var _aureliaTaskQueue = require('aurelia-task-queue'); var _aureliaTemplating = require('aurelia-templating'); var _aureliaPal = require('aurelia-pal'); -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { @@ -66,9 +60,11 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.'); } -var logger = LogManager.getLogger('templating-resources'); +var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('compose'), _dec(_class = (0, _aureliaTemplating.noView)(_class = (_class2 = function () { + Compose.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue]; + }; -var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('compose'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue), _dec(_class = (0, _aureliaTemplating.noView)(_class = _dec2(_class = (_class2 = function () { function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { @@ -101,12 +97,13 @@ var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('c this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } }; Compose.prototype.unbind = function unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; var returnToCache = true; @@ -142,7 +139,7 @@ var Compose = exports.Compose = (_dec = (0, _aureliaTemplating.customElement)('c }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'swapOrder', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -})), _class2)) || _class) || _class) || _class); +})), _class2)) || _class) || _class); function isEmpty(obj) { @@ -197,20 +194,21 @@ function processChanges(composer) { }); } - composer.pendingTask = composer.pendingTask.catch(function (e) { - logger.error(e); - }).then(function () { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(function () { + completeCompositionTask(composer); + }, function (reason) { + completeCompositionTask(composer); + throw reason; }); } +function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } +} + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; diff --git a/dist/commonjs/debounce-binding-behavior.js b/dist/commonjs/debounce-binding-behavior.js index 0220c29..756a5ae 100644 --- a/dist/commonjs/debounce-binding-behavior.js +++ b/dist/commonjs/debounce-binding-behavior.js @@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.DebounceBindingBehavior = undefined; +var _dec, _class; + var _aureliaBinding = require('aurelia-binding'); @@ -35,13 +37,13 @@ function debounceCall(context, newValue, oldValue) { state.oldValue = oldValue; } state.timeoutId = setTimeout(function () { - var ov = state.oldValue; + var _oldValue = state.oldValue; state.oldValue = unset; - _this2.debouncedMethod(context, newValue, ov); + _this2.debouncedMethod(context, newValue, _oldValue); }, state.delay); } -var DebounceBindingBehavior = exports.DebounceBindingBehavior = function () { +var DebounceBindingBehavior = exports.DebounceBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('debounce'), _dec(_class = function () { function DebounceBindingBehavior() { } @@ -77,4 +79,4 @@ var DebounceBindingBehavior = exports.DebounceBindingBehavior = function () { }; return DebounceBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/focus.js b/dist/commonjs/focus.js index b6694d2..eeec295 100644 --- a/dist/commonjs/focus.js +++ b/dist/commonjs/focus.js @@ -5,21 +5,23 @@ Object.defineProperty(exports, "__esModule", { }); exports.Focus = undefined; -var _dec, _dec2, _class; +var _dec, _class; var _aureliaTemplating = require('aurelia-templating'); var _aureliaBinding = require('aurelia-binding'); -var _aureliaDependencyInjection = require('aurelia-dependency-injection'); - var _aureliaTaskQueue = require('aurelia-task-queue'); var _aureliaPal = require('aurelia-pal'); -var Focus = exports.Focus = (_dec = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue), _dec(_class = _dec2(_class = function () { +var Focus = exports.Focus = (_dec = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec(_class = function () { + Focus.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue]; + }; + function Focus(element, taskQueue) { @@ -76,4 +78,4 @@ var Focus = exports.Focus = (_dec = (0, _aureliaTemplating.customAttribute)('foc }; return Focus; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/hide.js b/dist/commonjs/hide.js index e0bf915..d02c34f 100644 --- a/dist/commonjs/hide.js +++ b/dist/commonjs/hide.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.Hide = undefined; -var _dec, _dec2, _class; +var _dec, _class; var _aureliaDependencyInjection = require('aurelia-dependency-injection'); @@ -17,7 +17,11 @@ var _aureliaHideStyle = require('./aurelia-hide-style'); -var Hide = exports.Hide = (_dec = (0, _aureliaTemplating.customAttribute)('hide'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec(_class = _dec2(_class = function () { +var Hide = exports.Hide = (_dec = (0, _aureliaTemplating.customAttribute)('hide'), _dec(_class = function () { + Hide.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; + function Hide(element, animator, domBoundary) { @@ -43,4 +47,4 @@ var Hide = exports.Hide = (_dec = (0, _aureliaTemplating.customAttribute)('hide' }; return Hide; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/repeat.js b/dist/commonjs/repeat.js index 23353cf..e78c75a 100644 --- a/dist/commonjs/repeat.js +++ b/dist/commonjs/repeat.js @@ -131,6 +131,8 @@ var Repeat = exports.Repeat = (_dec = (0, _aureliaTemplating.customAttribute)('r }; Repeat.prototype.itemsChanged = function itemsChanged() { + var _this2 = this; + this._unsubscribeCollection(); if (!this.scope) { @@ -146,7 +148,11 @@ var Repeat = exports.Repeat = (_dec = (0, _aureliaTemplating.customAttribute)('r if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(function () { + _this2.ignoreMutation = false; + }); }; Repeat.prototype._getInnerCollection = function _getInnerCollection() { @@ -161,11 +167,14 @@ var Repeat = exports.Repeat = (_dec = (0, _aureliaTemplating.customAttribute)('r if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); }; Repeat.prototype.handleInnerCollectionMutated = function handleInnerCollectionMutated(collection, changes) { - var _this2 = this; + var _this3 = this; if (!this.collectionObserver) { return; @@ -177,7 +186,7 @@ var Repeat = exports.Repeat = (_dec = (0, _aureliaTemplating.customAttribute)('r this.ignoreMutation = true; var newItems = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); this.observerLocator.taskQueue.queueMicroTask(function () { - return _this2.ignoreMutation = false; + return _this3.ignoreMutation = false; }); if (newItems === this.items) { diff --git a/dist/commonjs/self-binding-behavior.js b/dist/commonjs/self-binding-behavior.js index 3d806e8..5113875 100644 --- a/dist/commonjs/self-binding-behavior.js +++ b/dist/commonjs/self-binding-behavior.js @@ -3,6 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); +exports.SelfBindingBehavior = undefined; + +var _dec, _class; + +var _aureliaBinding = require('aurelia-binding'); @@ -16,7 +21,7 @@ function handleSelfEvent(event) { this.selfEventCallSource(event); } -var SelfBindingBehavior = exports.SelfBindingBehavior = function () { +var SelfBindingBehavior = exports.SelfBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('self'), _dec(_class = function () { function SelfBindingBehavior() { } @@ -33,4 +38,4 @@ var SelfBindingBehavior = exports.SelfBindingBehavior = function () { }; return SelfBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/show.js b/dist/commonjs/show.js index 4030bba..baf442f 100644 --- a/dist/commonjs/show.js +++ b/dist/commonjs/show.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.Show = undefined; -var _dec, _dec2, _class; +var _dec, _class; var _aureliaDependencyInjection = require('aurelia-dependency-injection'); @@ -17,7 +17,11 @@ var _aureliaHideStyle = require('./aurelia-hide-style'); -var Show = exports.Show = (_dec = (0, _aureliaTemplating.customAttribute)('show'), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec(_class = _dec2(_class = function () { +var Show = exports.Show = (_dec = (0, _aureliaTemplating.customAttribute)('show'), _dec(_class = function () { + Show.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; + function Show(element, animator, domBoundary) { @@ -43,4 +47,4 @@ var Show = exports.Show = (_dec = (0, _aureliaTemplating.customAttribute)('show' }; return Show; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/signal-binding-behavior.js b/dist/commonjs/signal-binding-behavior.js index dfb4b4c..9bfe629 100644 --- a/dist/commonjs/signal-binding-behavior.js +++ b/dist/commonjs/signal-binding-behavior.js @@ -5,11 +5,15 @@ Object.defineProperty(exports, "__esModule", { }); exports.SignalBindingBehavior = undefined; +var _dec, _class; + +var _aureliaBinding = require('aurelia-binding'); + var _bindingSignaler = require('./binding-signaler'); -var SignalBindingBehavior = exports.SignalBindingBehavior = function () { +var SignalBindingBehavior = exports.SignalBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('signal'), _dec(_class = function () { SignalBindingBehavior.inject = function inject() { return [_bindingSignaler.BindingSignaler]; }; @@ -61,4 +65,4 @@ var SignalBindingBehavior = exports.SignalBindingBehavior = function () { }; return SignalBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/throttle-binding-behavior.js b/dist/commonjs/throttle-binding-behavior.js index fced5ea..09b4755 100644 --- a/dist/commonjs/throttle-binding-behavior.js +++ b/dist/commonjs/throttle-binding-behavior.js @@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.ThrottleBindingBehavior = undefined; +var _dec, _class; + var _aureliaBinding = require('aurelia-binding'); @@ -31,7 +33,7 @@ function throttle(newValue) { } } -var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = function () { +var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('throttle'), _dec(_class = function () { function ThrottleBindingBehavior() { } @@ -67,4 +69,4 @@ var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = function () { }; return ThrottleBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/commonjs/update-trigger-binding-behavior.js b/dist/commonjs/update-trigger-binding-behavior.js index 2971c51..3006418 100644 --- a/dist/commonjs/update-trigger-binding-behavior.js +++ b/dist/commonjs/update-trigger-binding-behavior.js @@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.UpdateTriggerBindingBehavior = undefined; +var _dec, _class; + var _aureliaBinding = require('aurelia-binding'); @@ -12,7 +14,7 @@ var _aureliaBinding = require('aurelia-binding'); var eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; var notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; -var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = function () { +var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = (_dec = (0, _aureliaBinding.bindingBehavior)('updateTrigger'), _dec(_class = function () { function UpdateTriggerBindingBehavior() { } @@ -48,4 +50,4 @@ var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = functi }; return UpdateTriggerBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/es2015/attr-binding-behavior.js b/dist/es2015/attr-binding-behavior.js index 609274a..9f6bcf5 100644 --- a/dist/es2015/attr-binding-behavior.js +++ b/dist/es2015/attr-binding-behavior.js @@ -1,9 +1,11 @@ -import { DataAttributeObserver } from 'aurelia-binding'; +var _dec, _class; -export let AttrBindingBehavior = class AttrBindingBehavior { +import { DataAttributeObserver, bindingBehavior } from 'aurelia-binding'; + +export let AttrBindingBehavior = (_dec = bindingBehavior('attr'), _dec(_class = class AttrBindingBehavior { bind(binding, source) { binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty); } unbind(binding, source) {} -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/aurelia-templating-resources.js b/dist/es2015/aurelia-templating-resources.js index 86ca503..62070e0 100644 --- a/dist/es2015/aurelia-templating-resources.js +++ b/dist/es2015/aurelia-templating-resources.js @@ -1,4 +1,3 @@ -import { PLATFORM } from 'aurelia-pal'; import { Compose } from './compose'; import { If } from './if'; import { Else } from './else'; @@ -13,7 +12,7 @@ import { ViewEngine } from 'aurelia-templating'; import { _createCSSResource } from './css-resource'; import { HTMLSanitizer } from './html-sanitizer'; import { AttrBindingBehavior } from './attr-binding-behavior'; -import { OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior } from './binding-mode-behaviors'; +import { OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, FromViewBindingBehavior, ToViewBindingBehavior } from './binding-mode-behaviors'; import { ThrottleBindingBehavior } from './throttle-binding-behavior'; import { DebounceBindingBehavior } from './debounce-binding-behavior'; import { SelfBindingBehavior } from './self-binding-behavior'; @@ -35,7 +34,7 @@ import { injectAureliaHideStyleAtHead } from './aurelia-hide-style'; function configure(config) { injectAureliaHideStyleAtHead(); - config.globalResources(PLATFORM.moduleName('./compose'), PLATFORM.moduleName('./if'), PLATFORM.moduleName('./else'), PLATFORM.moduleName('./with'), PLATFORM.moduleName('./repeat'), PLATFORM.moduleName('./show'), PLATFORM.moduleName('./hide'), PLATFORM.moduleName('./replaceable'), PLATFORM.moduleName('./sanitize-html'), PLATFORM.moduleName('./focus'), PLATFORM.moduleName('./binding-mode-behaviors'), PLATFORM.moduleName('./self-binding-behavior'), PLATFORM.moduleName('./throttle-binding-behavior'), PLATFORM.moduleName('./debounce-binding-behavior'), PLATFORM.moduleName('./signal-binding-behavior'), PLATFORM.moduleName('./update-trigger-binding-behavior'), PLATFORM.moduleName('./attr-binding-behavior')); + config.globalResources(Compose, If, Else, With, Repeat, Show, Hide, Replaceable, Focus, SanitizeHTMLValueConverter, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, UpdateTriggerBindingBehavior, AttrBindingBehavior); configureHtmlResourcePlugin(config); @@ -48,4 +47,4 @@ function configure(config) { ['.css', '.less', '.sass', '.scss', '.styl'].forEach(ext => viewEngine.addResourcePlugin(ext, styleResourcePlugin)); } -export { Compose, If, Else, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle }; \ No newline at end of file +export { Compose, If, Else, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle }; \ No newline at end of file diff --git a/dist/es2015/binding-mode-behaviors.js b/dist/es2015/binding-mode-behaviors.js index 596861f..d36cd86 100644 --- a/dist/es2015/binding-mode-behaviors.js +++ b/dist/es2015/binding-mode-behaviors.js @@ -1,6 +1,6 @@ -var _dec, _class, _dec2, _class2, _dec3, _class3; +var _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec7, _dec8, _class4, _dec9, _dec10, _class5; -import { bindingMode } from 'aurelia-binding'; +import { bindingMode, bindingBehavior } from 'aurelia-binding'; import { mixin } from 'aurelia-metadata'; let modeBindingBehavior = { @@ -15,20 +15,32 @@ let modeBindingBehavior = { } }; -export let OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec(_class = class OneTimeBindingBehavior { +export let OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec2 = bindingBehavior('oneTime'), _dec(_class = _dec2(_class = class OneTimeBindingBehavior { constructor() { this.mode = bindingMode.oneTime; } -}) || _class); +}) || _class) || _class); -export let OneWayBindingBehavior = (_dec2 = mixin(modeBindingBehavior), _dec2(_class2 = class OneWayBindingBehavior { +export let OneWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec4 = bindingBehavior('oneWay'), _dec3(_class2 = _dec4(_class2 = class OneWayBindingBehavior { constructor() { - this.mode = bindingMode.oneWay; + this.mode = bindingMode.toView; } -}) || _class2); +}) || _class2) || _class2); -export let TwoWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec3(_class3 = class TwoWayBindingBehavior { +export let ToViewBindingBehavior = (_dec5 = mixin(modeBindingBehavior), _dec6 = bindingBehavior('toView'), _dec5(_class3 = _dec6(_class3 = class ToViewBindingBehavior { + constructor() { + this.mode = bindingMode.toView; + } +}) || _class3) || _class3); + +export let FromViewBindingBehavior = (_dec7 = mixin(modeBindingBehavior), _dec8 = bindingBehavior('fromView'), _dec7(_class4 = _dec8(_class4 = class FromViewBindingBehavior { + constructor() { + this.mode = bindingMode.fromView; + } +}) || _class4) || _class4); + +export let TwoWayBindingBehavior = (_dec9 = mixin(modeBindingBehavior), _dec10 = bindingBehavior('twoWay'), _dec9(_class5 = _dec10(_class5 = class TwoWayBindingBehavior { constructor() { this.mode = bindingMode.twoWay; } -}) || _class3); \ No newline at end of file +}) || _class5) || _class5); \ No newline at end of file diff --git a/dist/es2015/compose.js b/dist/es2015/compose.js index 363ff34..6607f47 100644 --- a/dist/es2015/compose.js +++ b/dist/es2015/compose.js @@ -1,4 +1,4 @@ -var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; +var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; @@ -43,15 +43,17 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.'); } -import { Container, inject } from 'aurelia-dependency-injection'; -import * as LogManager from 'aurelia-logging'; +import { Container } from 'aurelia-dependency-injection'; import { TaskQueue } from 'aurelia-task-queue'; import { CompositionEngine, CompositionContext, ViewSlot, ViewResources, customElement, bindable, noView, View } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; -const logger = LogManager.getLogger('templating-resources'); +export let Compose = (_dec = customElement('compose'), _dec(_class = noView(_class = (_class2 = class Compose { + + static inject() { + return [DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue]; + } -export let Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue), _dec(_class = noView(_class = _dec2(_class = (_class2 = class Compose { constructor(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { _initDefineProp(this, 'model', _descriptor, this); @@ -82,12 +84,13 @@ export let Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Elemen this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } } unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; let returnToCache = true; @@ -121,7 +124,7 @@ export let Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Elemen }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'swapOrder', [bindable], { enumerable: true, initializer: null -})), _class2)) || _class) || _class) || _class); +})), _class2)) || _class) || _class); function isEmpty(obj) { for (const key in obj) { @@ -175,20 +178,21 @@ function processChanges(composer) { }); } - composer.pendingTask = composer.pendingTask.catch(e => { - logger.error(e); - }).then(() => { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(() => { + completeCompositionTask(composer); + }, reason => { + completeCompositionTask(composer); + throw reason; }); } +function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } +} + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; diff --git a/dist/es2015/debounce-binding-behavior.js b/dist/es2015/debounce-binding-behavior.js index ba7a2ca..fc4c566 100644 --- a/dist/es2015/debounce-binding-behavior.js +++ b/dist/es2015/debounce-binding-behavior.js @@ -1,4 +1,6 @@ -import { bindingMode, sourceContext, targetContext } from 'aurelia-binding'; +var _dec, _class; + +import { bindingMode, sourceContext, targetContext, bindingBehavior } from 'aurelia-binding'; const unset = {}; @@ -20,13 +22,13 @@ function debounceCall(context, newValue, oldValue) { state.oldValue = oldValue; } state.timeoutId = setTimeout(() => { - const ov = state.oldValue; + const _oldValue = state.oldValue; state.oldValue = unset; - this.debouncedMethod(context, newValue, ov); + this.debouncedMethod(context, newValue, _oldValue); }, state.delay); } -export let DebounceBindingBehavior = class DebounceBindingBehavior { +export let DebounceBindingBehavior = (_dec = bindingBehavior('debounce'), _dec(_class = class DebounceBindingBehavior { bind(binding, source, delay = 200) { const isCallSource = binding.callSource !== undefined; const methodToDebounce = isCallSource ? 'callSource' : 'call'; @@ -54,4 +56,4 @@ export let DebounceBindingBehavior = class DebounceBindingBehavior { clearTimeout(binding.debounceState.timeoutId); binding.debounceState = null; } -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/focus.js b/dist/es2015/focus.js index 1ed666f..d399f2a 100644 --- a/dist/es2015/focus.js +++ b/dist/es2015/focus.js @@ -1,12 +1,16 @@ -var _dec, _dec2, _class; +var _dec, _class; import { customAttribute } from 'aurelia-templating'; import { bindingMode } from 'aurelia-binding'; -import { inject } from 'aurelia-dependency-injection'; import { TaskQueue } from 'aurelia-task-queue'; import { DOM } from 'aurelia-pal'; -export let Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec2 = inject(DOM.Element, TaskQueue), _dec(_class = _dec2(_class = class Focus { +export let Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec(_class = class Focus { + + static inject() { + return [DOM.Element, TaskQueue]; + } + constructor(element, taskQueue) { this.element = element; this.taskQueue = taskQueue; @@ -57,4 +61,4 @@ export let Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec2 = this.value = false; } } -}) || _class) || _class); \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/hide.js b/dist/es2015/hide.js index 15a9f67..ed2b5bb 100644 --- a/dist/es2015/hide.js +++ b/dist/es2015/hide.js @@ -1,11 +1,16 @@ -var _dec, _dec2, _class; +var _dec, _class; -import { inject, Optional } from 'aurelia-dependency-injection'; +import { Optional } from 'aurelia-dependency-injection'; import { customAttribute, Animator } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; import { injectAureliaHideStyleAtBoundary, aureliaHideClassName } from './aurelia-hide-style'; -export let Hide = (_dec = customAttribute('hide'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = class Hide { +export let Hide = (_dec = customAttribute('hide'), _dec(_class = class Hide { + + static inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + } + constructor(element, animator, domBoundary) { this.element = element; this.animator = animator; @@ -27,4 +32,4 @@ export let Hide = (_dec = customAttribute('hide'), _dec2 = inject(DOM.Element, A bind(bindingContext) { this.valueChanged(this.value); } -}) || _class) || _class); \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/repeat.js b/dist/es2015/repeat.js index 5a305d4..42065e6 100644 --- a/dist/es2015/repeat.js +++ b/dist/es2015/repeat.js @@ -122,7 +122,11 @@ export let Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(() => { + this.ignoreMutation = false; + }); } _getInnerCollection() { @@ -137,6 +141,9 @@ export let Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); } diff --git a/dist/es2015/self-binding-behavior.js b/dist/es2015/self-binding-behavior.js index 53d1091..7c1ddae 100644 --- a/dist/es2015/self-binding-behavior.js +++ b/dist/es2015/self-binding-behavior.js @@ -1,3 +1,7 @@ +var _dec, _class; + +import { bindingBehavior } from 'aurelia-binding'; + function findOriginalEventTarget(event) { return event.path && event.path[0] || event.deepPath && event.deepPath[0] || event.target; } @@ -8,7 +12,7 @@ function handleSelfEvent(event) { this.selfEventCallSource(event); } -export let SelfBindingBehavior = class SelfBindingBehavior { +export let SelfBindingBehavior = (_dec = bindingBehavior('self'), _dec(_class = class SelfBindingBehavior { bind(binding, source) { if (!binding.callSource || !binding.targetEvent) throw new Error('Self binding behavior only supports event.'); binding.selfEventCallSource = binding.callSource; @@ -19,4 +23,4 @@ export let SelfBindingBehavior = class SelfBindingBehavior { binding.callSource = binding.selfEventCallSource; binding.selfEventCallSource = null; } -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/show.js b/dist/es2015/show.js index 71a2624..a82b4b3 100644 --- a/dist/es2015/show.js +++ b/dist/es2015/show.js @@ -1,11 +1,16 @@ -var _dec, _dec2, _class; +var _dec, _class; -import { inject, Optional } from 'aurelia-dependency-injection'; +import { Optional } from 'aurelia-dependency-injection'; import { customAttribute, Animator } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; import { injectAureliaHideStyleAtBoundary, aureliaHideClassName } from './aurelia-hide-style'; -export let Show = (_dec = customAttribute('show'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = class Show { +export let Show = (_dec = customAttribute('show'), _dec(_class = class Show { + + static inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + } + constructor(element, animator, domBoundary) { this.element = element; this.animator = animator; @@ -27,4 +32,4 @@ export let Show = (_dec = customAttribute('show'), _dec2 = inject(DOM.Element, A bind(bindingContext) { this.valueChanged(this.value); } -}) || _class) || _class); \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/signal-binding-behavior.js b/dist/es2015/signal-binding-behavior.js index c9b1d5c..99d4e73 100644 --- a/dist/es2015/signal-binding-behavior.js +++ b/dist/es2015/signal-binding-behavior.js @@ -1,6 +1,9 @@ +var _dec, _class; + +import { bindingBehavior } from 'aurelia-binding'; import { BindingSignaler } from './binding-signaler'; -export let SignalBindingBehavior = class SignalBindingBehavior { +export let SignalBindingBehavior = (_dec = bindingBehavior('signal'), _dec(_class = class SignalBindingBehavior { static inject() { return [BindingSignaler]; } @@ -49,4 +52,4 @@ export let SignalBindingBehavior = class SignalBindingBehavior { bindings.splice(bindings.indexOf(binding), 1); } } -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/throttle-binding-behavior.js b/dist/es2015/throttle-binding-behavior.js index d815486..2aef321 100644 --- a/dist/es2015/throttle-binding-behavior.js +++ b/dist/es2015/throttle-binding-behavior.js @@ -1,4 +1,6 @@ -import { bindingMode } from 'aurelia-binding'; +var _dec, _class; + +import { bindingMode, bindingBehavior } from 'aurelia-binding'; function throttle(newValue) { let state = this.throttleState; @@ -20,7 +22,7 @@ function throttle(newValue) { } } -export let ThrottleBindingBehavior = class ThrottleBindingBehavior { +export let ThrottleBindingBehavior = (_dec = bindingBehavior('throttle'), _dec(_class = class ThrottleBindingBehavior { bind(binding, source, delay = 200) { let methodToThrottle = 'updateTarget'; if (binding.callSource) { @@ -48,4 +50,4 @@ export let ThrottleBindingBehavior = class ThrottleBindingBehavior { clearTimeout(binding.throttleState.timeoutId); binding.throttleState = null; } -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/es2015/update-trigger-binding-behavior.js b/dist/es2015/update-trigger-binding-behavior.js index 35a5c49..b07475b 100644 --- a/dist/es2015/update-trigger-binding-behavior.js +++ b/dist/es2015/update-trigger-binding-behavior.js @@ -1,9 +1,11 @@ -import { bindingMode, EventSubscriber } from 'aurelia-binding'; +var _dec, _class; + +import { bindingMode, EventSubscriber, bindingBehavior } from 'aurelia-binding'; const eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; const notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; -export let UpdateTriggerBindingBehavior = class UpdateTriggerBindingBehavior { +export let UpdateTriggerBindingBehavior = (_dec = bindingBehavior('updateTrigger'), _dec(_class = class UpdateTriggerBindingBehavior { bind(binding, source, ...events) { if (events.length === 0) { @@ -30,4 +32,4 @@ export let UpdateTriggerBindingBehavior = class UpdateTriggerBindingBehavior { binding.targetObserver.handler = binding.targetObserver.originalHandler; binding.targetObserver.originalHandler = null; } -}; \ No newline at end of file +}) || _class); \ No newline at end of file diff --git a/dist/native-modules/attr-binding-behavior.js b/dist/native-modules/attr-binding-behavior.js index e687b05..9c54735 100644 --- a/dist/native-modules/attr-binding-behavior.js +++ b/dist/native-modules/attr-binding-behavior.js @@ -1,8 +1,10 @@ +var _dec, _class; -import { DataAttributeObserver } from 'aurelia-binding'; -export var AttrBindingBehavior = function () { +import { DataAttributeObserver, bindingBehavior } from 'aurelia-binding'; + +export var AttrBindingBehavior = (_dec = bindingBehavior('attr'), _dec(_class = function () { function AttrBindingBehavior() { } @@ -14,4 +16,4 @@ export var AttrBindingBehavior = function () { AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {}; return AttrBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/aurelia-templating-resources.js b/dist/native-modules/aurelia-templating-resources.js index 4351dd5..05bd930 100644 --- a/dist/native-modules/aurelia-templating-resources.js +++ b/dist/native-modules/aurelia-templating-resources.js @@ -1,4 +1,3 @@ -import { PLATFORM } from 'aurelia-pal'; import { Compose } from './compose'; import { If } from './if'; import { Else } from './else'; @@ -13,7 +12,7 @@ import { ViewEngine } from 'aurelia-templating'; import { _createCSSResource } from './css-resource'; import { HTMLSanitizer } from './html-sanitizer'; import { AttrBindingBehavior } from './attr-binding-behavior'; -import { OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior } from './binding-mode-behaviors'; +import { OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, FromViewBindingBehavior, ToViewBindingBehavior } from './binding-mode-behaviors'; import { ThrottleBindingBehavior } from './throttle-binding-behavior'; import { DebounceBindingBehavior } from './debounce-binding-behavior'; import { SelfBindingBehavior } from './self-binding-behavior'; @@ -35,7 +34,7 @@ import { injectAureliaHideStyleAtHead } from './aurelia-hide-style'; function configure(config) { injectAureliaHideStyleAtHead(); - config.globalResources(PLATFORM.moduleName('./compose'), PLATFORM.moduleName('./if'), PLATFORM.moduleName('./else'), PLATFORM.moduleName('./with'), PLATFORM.moduleName('./repeat'), PLATFORM.moduleName('./show'), PLATFORM.moduleName('./hide'), PLATFORM.moduleName('./replaceable'), PLATFORM.moduleName('./sanitize-html'), PLATFORM.moduleName('./focus'), PLATFORM.moduleName('./binding-mode-behaviors'), PLATFORM.moduleName('./self-binding-behavior'), PLATFORM.moduleName('./throttle-binding-behavior'), PLATFORM.moduleName('./debounce-binding-behavior'), PLATFORM.moduleName('./signal-binding-behavior'), PLATFORM.moduleName('./update-trigger-binding-behavior'), PLATFORM.moduleName('./attr-binding-behavior')); + config.globalResources(Compose, If, Else, With, Repeat, Show, Hide, Replaceable, Focus, SanitizeHTMLValueConverter, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, UpdateTriggerBindingBehavior, AttrBindingBehavior); configureHtmlResourcePlugin(config); @@ -52,4 +51,4 @@ function configure(config) { }); } -export { Compose, If, Else, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle }; \ No newline at end of file +export { Compose, If, Else, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle }; \ No newline at end of file diff --git a/dist/native-modules/binding-mode-behaviors.js b/dist/native-modules/binding-mode-behaviors.js index 4839db1..f4e268d 100644 --- a/dist/native-modules/binding-mode-behaviors.js +++ b/dist/native-modules/binding-mode-behaviors.js @@ -1,8 +1,8 @@ -var _dec, _class, _dec2, _class2, _dec3, _class3; +var _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec7, _dec8, _class4, _dec9, _dec10, _class5; -import { bindingMode } from 'aurelia-binding'; +import { bindingMode, bindingBehavior } from 'aurelia-binding'; import { mixin } from 'aurelia-metadata'; var modeBindingBehavior = { @@ -16,20 +16,32 @@ var modeBindingBehavior = { } }; -export var OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec(_class = function OneTimeBindingBehavior() { +export var OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec2 = bindingBehavior('oneTime'), _dec(_class = _dec2(_class = function OneTimeBindingBehavior() { this.mode = bindingMode.oneTime; -}) || _class); +}) || _class) || _class); -export var OneWayBindingBehavior = (_dec2 = mixin(modeBindingBehavior), _dec2(_class2 = function OneWayBindingBehavior() { +export var OneWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec4 = bindingBehavior('oneWay'), _dec3(_class2 = _dec4(_class2 = function OneWayBindingBehavior() { - this.mode = bindingMode.oneWay; -}) || _class2); + this.mode = bindingMode.toView; +}) || _class2) || _class2); -export var TwoWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec3(_class3 = function TwoWayBindingBehavior() { +export var ToViewBindingBehavior = (_dec5 = mixin(modeBindingBehavior), _dec6 = bindingBehavior('toView'), _dec5(_class3 = _dec6(_class3 = function ToViewBindingBehavior() { + + + this.mode = bindingMode.toView; +}) || _class3) || _class3); + +export var FromViewBindingBehavior = (_dec7 = mixin(modeBindingBehavior), _dec8 = bindingBehavior('fromView'), _dec7(_class4 = _dec8(_class4 = function FromViewBindingBehavior() { + + + this.mode = bindingMode.fromView; +}) || _class4) || _class4); + +export var TwoWayBindingBehavior = (_dec9 = mixin(modeBindingBehavior), _dec10 = bindingBehavior('twoWay'), _dec9(_class5 = _dec10(_class5 = function TwoWayBindingBehavior() { this.mode = bindingMode.twoWay; -}) || _class3); \ No newline at end of file +}) || _class5) || _class5); \ No newline at end of file diff --git a/dist/native-modules/compose.js b/dist/native-modules/compose.js index 34ad5f5..243f183 100644 --- a/dist/native-modules/compose.js +++ b/dist/native-modules/compose.js @@ -1,4 +1,4 @@ -var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; +var _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4; function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; @@ -45,15 +45,16 @@ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.'); } -import { Container, inject } from 'aurelia-dependency-injection'; -import * as LogManager from 'aurelia-logging'; +import { Container } from 'aurelia-dependency-injection'; import { TaskQueue } from 'aurelia-task-queue'; import { CompositionEngine, CompositionContext, ViewSlot, ViewResources, customElement, bindable, noView, View } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; -var logger = LogManager.getLogger('templating-resources'); +export var Compose = (_dec = customElement('compose'), _dec(_class = noView(_class = (_class2 = function () { + Compose.inject = function inject() { + return [DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue]; + }; -export var Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue), _dec(_class = noView(_class = _dec2(_class = (_class2 = function () { function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { @@ -86,12 +87,13 @@ export var Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Elemen this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } }; Compose.prototype.unbind = function unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; var returnToCache = true; @@ -127,7 +129,7 @@ export var Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Elemen }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'swapOrder', [bindable], { enumerable: true, initializer: null -})), _class2)) || _class) || _class) || _class); +})), _class2)) || _class) || _class); function isEmpty(obj) { for (var key in obj) { @@ -181,20 +183,21 @@ function processChanges(composer) { }); } - composer.pendingTask = composer.pendingTask.catch(function (e) { - logger.error(e); - }).then(function () { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(function () { + completeCompositionTask(composer); + }, function (reason) { + completeCompositionTask(composer); + throw reason; }); } +function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } +} + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; diff --git a/dist/native-modules/debounce-binding-behavior.js b/dist/native-modules/debounce-binding-behavior.js index e38b343..db29bec 100644 --- a/dist/native-modules/debounce-binding-behavior.js +++ b/dist/native-modules/debounce-binding-behavior.js @@ -1,6 +1,8 @@ +var _dec, _class; -import { bindingMode, sourceContext, targetContext } from 'aurelia-binding'; + +import { bindingMode, sourceContext, targetContext, bindingBehavior } from 'aurelia-binding'; var unset = {}; @@ -28,13 +30,13 @@ function debounceCall(context, newValue, oldValue) { state.oldValue = oldValue; } state.timeoutId = setTimeout(function () { - var ov = state.oldValue; + var _oldValue = state.oldValue; state.oldValue = unset; - _this2.debouncedMethod(context, newValue, ov); + _this2.debouncedMethod(context, newValue, _oldValue); }, state.delay); } -export var DebounceBindingBehavior = function () { +export var DebounceBindingBehavior = (_dec = bindingBehavior('debounce'), _dec(_class = function () { function DebounceBindingBehavior() { } @@ -70,4 +72,4 @@ export var DebounceBindingBehavior = function () { }; return DebounceBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/focus.js b/dist/native-modules/focus.js index d7c32cc..081d65a 100644 --- a/dist/native-modules/focus.js +++ b/dist/native-modules/focus.js @@ -1,14 +1,17 @@ -var _dec, _dec2, _class; +var _dec, _class; import { customAttribute } from 'aurelia-templating'; import { bindingMode } from 'aurelia-binding'; -import { inject } from 'aurelia-dependency-injection'; import { TaskQueue } from 'aurelia-task-queue'; import { DOM } from 'aurelia-pal'; -export var Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec2 = inject(DOM.Element, TaskQueue), _dec(_class = _dec2(_class = function () { +export var Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec(_class = function () { + Focus.inject = function inject() { + return [DOM.Element, TaskQueue]; + }; + function Focus(element, taskQueue) { @@ -65,4 +68,4 @@ export var Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec2 = }; return Focus; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/hide.js b/dist/native-modules/hide.js index 7df50e5..a85cafd 100644 --- a/dist/native-modules/hide.js +++ b/dist/native-modules/hide.js @@ -1,13 +1,17 @@ -var _dec, _dec2, _class; +var _dec, _class; -import { inject, Optional } from 'aurelia-dependency-injection'; +import { Optional } from 'aurelia-dependency-injection'; import { customAttribute, Animator } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; import { injectAureliaHideStyleAtBoundary, aureliaHideClassName } from './aurelia-hide-style'; -export var Hide = (_dec = customAttribute('hide'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = function () { +export var Hide = (_dec = customAttribute('hide'), _dec(_class = function () { + Hide.inject = function inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + }; + function Hide(element, animator, domBoundary) { @@ -33,4 +37,4 @@ export var Hide = (_dec = customAttribute('hide'), _dec2 = inject(DOM.Element, A }; return Hide; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/repeat.js b/dist/native-modules/repeat.js index 48b15e5..1d6a03b 100644 --- a/dist/native-modules/repeat.js +++ b/dist/native-modules/repeat.js @@ -118,6 +118,8 @@ export var Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF }; Repeat.prototype.itemsChanged = function itemsChanged() { + var _this2 = this; + this._unsubscribeCollection(); if (!this.scope) { @@ -133,7 +135,11 @@ export var Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(function () { + _this2.ignoreMutation = false; + }); }; Repeat.prototype._getInnerCollection = function _getInnerCollection() { @@ -148,11 +154,14 @@ export var Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); }; Repeat.prototype.handleInnerCollectionMutated = function handleInnerCollectionMutated(collection, changes) { - var _this2 = this; + var _this3 = this; if (!this.collectionObserver) { return; @@ -164,7 +173,7 @@ export var Repeat = (_dec = customAttribute('repeat'), _dec2 = inject(BoundViewF this.ignoreMutation = true; var newItems = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); this.observerLocator.taskQueue.queueMicroTask(function () { - return _this2.ignoreMutation = false; + return _this3.ignoreMutation = false; }); if (newItems === this.items) { diff --git a/dist/native-modules/self-binding-behavior.js b/dist/native-modules/self-binding-behavior.js index 5adbfca..bd4aac7 100644 --- a/dist/native-modules/self-binding-behavior.js +++ b/dist/native-modules/self-binding-behavior.js @@ -1,5 +1,9 @@ +var _dec, _class; + +import { bindingBehavior } from 'aurelia-binding'; + function findOriginalEventTarget(event) { return event.path && event.path[0] || event.deepPath && event.deepPath[0] || event.target; } @@ -10,7 +14,7 @@ function handleSelfEvent(event) { this.selfEventCallSource(event); } -export var SelfBindingBehavior = function () { +export var SelfBindingBehavior = (_dec = bindingBehavior('self'), _dec(_class = function () { function SelfBindingBehavior() { } @@ -27,4 +31,4 @@ export var SelfBindingBehavior = function () { }; return SelfBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/show.js b/dist/native-modules/show.js index 9288087..ef8ecee 100644 --- a/dist/native-modules/show.js +++ b/dist/native-modules/show.js @@ -1,13 +1,17 @@ -var _dec, _dec2, _class; +var _dec, _class; -import { inject, Optional } from 'aurelia-dependency-injection'; +import { Optional } from 'aurelia-dependency-injection'; import { customAttribute, Animator } from 'aurelia-templating'; import { DOM } from 'aurelia-pal'; import { injectAureliaHideStyleAtBoundary, aureliaHideClassName } from './aurelia-hide-style'; -export var Show = (_dec = customAttribute('show'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = function () { +export var Show = (_dec = customAttribute('show'), _dec(_class = function () { + Show.inject = function inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + }; + function Show(element, animator, domBoundary) { @@ -33,4 +37,4 @@ export var Show = (_dec = customAttribute('show'), _dec2 = inject(DOM.Element, A }; return Show; -}()) || _class) || _class); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/signal-binding-behavior.js b/dist/native-modules/signal-binding-behavior.js index 6538a87..c62f109 100644 --- a/dist/native-modules/signal-binding-behavior.js +++ b/dist/native-modules/signal-binding-behavior.js @@ -1,8 +1,11 @@ +var _dec, _class; + +import { bindingBehavior } from 'aurelia-binding'; import { BindingSignaler } from './binding-signaler'; -export var SignalBindingBehavior = function () { +export var SignalBindingBehavior = (_dec = bindingBehavior('signal'), _dec(_class = function () { SignalBindingBehavior.inject = function inject() { return [BindingSignaler]; }; @@ -54,4 +57,4 @@ export var SignalBindingBehavior = function () { }; return SignalBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/throttle-binding-behavior.js b/dist/native-modules/throttle-binding-behavior.js index 72cad60..eb16b0e 100644 --- a/dist/native-modules/throttle-binding-behavior.js +++ b/dist/native-modules/throttle-binding-behavior.js @@ -1,6 +1,8 @@ +var _dec, _class; -import { bindingMode } from 'aurelia-binding'; + +import { bindingMode, bindingBehavior } from 'aurelia-binding'; function throttle(newValue) { var _this = this; @@ -24,7 +26,7 @@ function throttle(newValue) { } } -export var ThrottleBindingBehavior = function () { +export var ThrottleBindingBehavior = (_dec = bindingBehavior('throttle'), _dec(_class = function () { function ThrottleBindingBehavior() { } @@ -60,4 +62,4 @@ export var ThrottleBindingBehavior = function () { }; return ThrottleBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/native-modules/update-trigger-binding-behavior.js b/dist/native-modules/update-trigger-binding-behavior.js index 953999a..08f82a0 100644 --- a/dist/native-modules/update-trigger-binding-behavior.js +++ b/dist/native-modules/update-trigger-binding-behavior.js @@ -1,11 +1,13 @@ +var _dec, _class; -import { bindingMode, EventSubscriber } from 'aurelia-binding'; + +import { bindingMode, EventSubscriber, bindingBehavior } from 'aurelia-binding'; var eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; var notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; -export var UpdateTriggerBindingBehavior = function () { +export var UpdateTriggerBindingBehavior = (_dec = bindingBehavior('updateTrigger'), _dec(_class = function () { function UpdateTriggerBindingBehavior() { } @@ -41,4 +43,4 @@ export var UpdateTriggerBindingBehavior = function () { }; return UpdateTriggerBindingBehavior; -}(); \ No newline at end of file +}()) || _class); \ No newline at end of file diff --git a/dist/system/attr-binding-behavior.js b/dist/system/attr-binding-behavior.js index d3095d2..91ab339 100644 --- a/dist/system/attr-binding-behavior.js +++ b/dist/system/attr-binding-behavior.js @@ -3,16 +3,17 @@ System.register(['aurelia-binding'], function (_export, _context) { "use strict"; - var DataAttributeObserver, AttrBindingBehavior; + var DataAttributeObserver, bindingBehavior, _dec, _class, AttrBindingBehavior; return { setters: [function (_aureliaBinding) { DataAttributeObserver = _aureliaBinding.DataAttributeObserver; + bindingBehavior = _aureliaBinding.bindingBehavior; }], execute: function () { - _export('AttrBindingBehavior', AttrBindingBehavior = function () { + _export('AttrBindingBehavior', AttrBindingBehavior = (_dec = bindingBehavior('attr'), _dec(_class = function () { function AttrBindingBehavior() { } @@ -24,7 +25,7 @@ System.register(['aurelia-binding'], function (_export, _context) { AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {}; return AttrBindingBehavior; - }()); + }()) || _class)); _export('AttrBindingBehavior', AttrBindingBehavior); } diff --git a/dist/system/aurelia-templating-resources.js b/dist/system/aurelia-templating-resources.js index af317d2..0ecca20 100644 --- a/dist/system/aurelia-templating-resources.js +++ b/dist/system/aurelia-templating-resources.js @@ -1,14 +1,14 @@ 'use strict'; -System.register(['aurelia-pal', './compose', './if', './else', './with', './repeat', './show', './hide', './sanitize-html', './replaceable', './focus', 'aurelia-templating', './css-resource', './html-sanitizer', './attr-binding-behavior', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './self-binding-behavior', './signal-binding-behavior', './binding-signaler', './update-trigger-binding-behavior', './abstract-repeater', './repeat-strategy-locator', './html-resource-plugin', './null-repeat-strategy', './array-repeat-strategy', './map-repeat-strategy', './set-repeat-strategy', './number-repeat-strategy', './repeat-utilities', './analyze-view-factory', './aurelia-hide-style'], function (_export, _context) { +System.register(['./compose', './if', './else', './with', './repeat', './show', './hide', './sanitize-html', './replaceable', './focus', 'aurelia-templating', './css-resource', './html-sanitizer', './attr-binding-behavior', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './self-binding-behavior', './signal-binding-behavior', './binding-signaler', './update-trigger-binding-behavior', './abstract-repeater', './repeat-strategy-locator', './html-resource-plugin', './null-repeat-strategy', './array-repeat-strategy', './map-repeat-strategy', './set-repeat-strategy', './number-repeat-strategy', './repeat-utilities', './analyze-view-factory', './aurelia-hide-style'], function (_export, _context) { "use strict"; - var PLATFORM, Compose, If, Else, With, Repeat, Show, Hide, SanitizeHTMLValueConverter, Replaceable, Focus, ViewEngine, _createCSSResource, HTMLSanitizer, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, configureHtmlResourcePlugin, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle, injectAureliaHideStyleAtHead; + var Compose, If, Else, With, Repeat, Show, Hide, SanitizeHTMLValueConverter, Replaceable, Focus, ViewEngine, _createCSSResource, HTMLSanitizer, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, FromViewBindingBehavior, ToViewBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SelfBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, configureHtmlResourcePlugin, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle, injectAureliaHideStyleAtHead; function configure(config) { injectAureliaHideStyleAtHead(); - config.globalResources(PLATFORM.moduleName('./compose'), PLATFORM.moduleName('./if'), PLATFORM.moduleName('./else'), PLATFORM.moduleName('./with'), PLATFORM.moduleName('./repeat'), PLATFORM.moduleName('./show'), PLATFORM.moduleName('./hide'), PLATFORM.moduleName('./replaceable'), PLATFORM.moduleName('./sanitize-html'), PLATFORM.moduleName('./focus'), PLATFORM.moduleName('./binding-mode-behaviors'), PLATFORM.moduleName('./self-binding-behavior'), PLATFORM.moduleName('./throttle-binding-behavior'), PLATFORM.moduleName('./debounce-binding-behavior'), PLATFORM.moduleName('./signal-binding-behavior'), PLATFORM.moduleName('./update-trigger-binding-behavior'), PLATFORM.moduleName('./attr-binding-behavior')); + config.globalResources(Compose, If, Else, With, Repeat, Show, Hide, Replaceable, Focus, SanitizeHTMLValueConverter, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, UpdateTriggerBindingBehavior, AttrBindingBehavior); configureHtmlResourcePlugin(config); @@ -26,9 +26,7 @@ System.register(['aurelia-pal', './compose', './if', './else', './with', './repe } return { - setters: [function (_aureliaPal) { - PLATFORM = _aureliaPal.PLATFORM; - }, function (_compose) { + setters: [function (_compose) { Compose = _compose.Compose; }, function (_if) { If = _if.If; @@ -60,6 +58,8 @@ System.register(['aurelia-pal', './compose', './if', './else', './with', './repe OneTimeBindingBehavior = _bindingModeBehaviors.OneTimeBindingBehavior; OneWayBindingBehavior = _bindingModeBehaviors.OneWayBindingBehavior; TwoWayBindingBehavior = _bindingModeBehaviors.TwoWayBindingBehavior; + FromViewBindingBehavior = _bindingModeBehaviors.FromViewBindingBehavior; + ToViewBindingBehavior = _bindingModeBehaviors.ToViewBindingBehavior; }, function (_throttleBindingBehavior) { ThrottleBindingBehavior = _throttleBindingBehavior.ThrottleBindingBehavior; }, function (_debounceBindingBehavior) { @@ -131,6 +131,10 @@ System.register(['aurelia-pal', './compose', './if', './else', './with', './repe _export('OneWayBindingBehavior', OneWayBindingBehavior); + _export('ToViewBindingBehavior', ToViewBindingBehavior); + + _export('FromViewBindingBehavior', FromViewBindingBehavior); + _export('TwoWayBindingBehavior', TwoWayBindingBehavior); _export('ThrottleBindingBehavior', ThrottleBindingBehavior); diff --git a/dist/system/binding-mode-behaviors.js b/dist/system/binding-mode-behaviors.js index a1c9856..f0684df 100644 --- a/dist/system/binding-mode-behaviors.js +++ b/dist/system/binding-mode-behaviors.js @@ -3,13 +3,14 @@ System.register(['aurelia-binding', 'aurelia-metadata'], function (_export, _context) { "use strict"; - var bindingMode, mixin, _dec, _class, _dec2, _class2, _dec3, _class3, modeBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior; + var bindingMode, bindingBehavior, mixin, _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec7, _dec8, _class4, _dec9, _dec10, _class5, modeBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, ToViewBindingBehavior, FromViewBindingBehavior, TwoWayBindingBehavior; return { setters: [function (_aureliaBinding) { bindingMode = _aureliaBinding.bindingMode; + bindingBehavior = _aureliaBinding.bindingBehavior; }, function (_aureliaMetadata) { mixin = _aureliaMetadata.mixin; }], @@ -25,27 +26,43 @@ System.register(['aurelia-binding', 'aurelia-metadata'], function (_export, _con } }; - _export('OneTimeBindingBehavior', OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec(_class = function OneTimeBindingBehavior() { + _export('OneTimeBindingBehavior', OneTimeBindingBehavior = (_dec = mixin(modeBindingBehavior), _dec2 = bindingBehavior('oneTime'), _dec(_class = _dec2(_class = function OneTimeBindingBehavior() { this.mode = bindingMode.oneTime; - }) || _class)); + }) || _class) || _class)); _export('OneTimeBindingBehavior', OneTimeBindingBehavior); - _export('OneWayBindingBehavior', OneWayBindingBehavior = (_dec2 = mixin(modeBindingBehavior), _dec2(_class2 = function OneWayBindingBehavior() { + _export('OneWayBindingBehavior', OneWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec4 = bindingBehavior('oneWay'), _dec3(_class2 = _dec4(_class2 = function OneWayBindingBehavior() { - this.mode = bindingMode.oneWay; - }) || _class2)); + this.mode = bindingMode.toView; + }) || _class2) || _class2)); _export('OneWayBindingBehavior', OneWayBindingBehavior); - _export('TwoWayBindingBehavior', TwoWayBindingBehavior = (_dec3 = mixin(modeBindingBehavior), _dec3(_class3 = function TwoWayBindingBehavior() { + _export('ToViewBindingBehavior', ToViewBindingBehavior = (_dec5 = mixin(modeBindingBehavior), _dec6 = bindingBehavior('toView'), _dec5(_class3 = _dec6(_class3 = function ToViewBindingBehavior() { + + + this.mode = bindingMode.toView; + }) || _class3) || _class3)); + + _export('ToViewBindingBehavior', ToViewBindingBehavior); + + _export('FromViewBindingBehavior', FromViewBindingBehavior = (_dec7 = mixin(modeBindingBehavior), _dec8 = bindingBehavior('fromView'), _dec7(_class4 = _dec8(_class4 = function FromViewBindingBehavior() { + + + this.mode = bindingMode.fromView; + }) || _class4) || _class4)); + + _export('FromViewBindingBehavior', FromViewBindingBehavior); + + _export('TwoWayBindingBehavior', TwoWayBindingBehavior = (_dec9 = mixin(modeBindingBehavior), _dec10 = bindingBehavior('twoWay'), _dec9(_class5 = _dec10(_class5 = function TwoWayBindingBehavior() { this.mode = bindingMode.twoWay; - }) || _class3)); + }) || _class5) || _class5)); _export('TwoWayBindingBehavior', TwoWayBindingBehavior); } diff --git a/dist/system/compose.js b/dist/system/compose.js index e2073fe..9b0b11b 100644 --- a/dist/system/compose.js +++ b/dist/system/compose.js @@ -1,9 +1,9 @@ 'use strict'; -System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-task-queue', 'aurelia-templating', 'aurelia-pal'], function (_export, _context) { +System.register(['aurelia-dependency-injection', 'aurelia-task-queue', 'aurelia-templating', 'aurelia-pal'], function (_export, _context) { "use strict"; - var Container, inject, LogManager, TaskQueue, CompositionEngine, CompositionContext, ViewSlot, ViewResources, customElement, bindable, noView, View, DOM, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, logger, Compose; + var Container, TaskQueue, CompositionEngine, CompositionContext, ViewSlot, ViewResources, customElement, bindable, noView, View, DOM, _dec, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, Compose; function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; @@ -102,20 +102,21 @@ System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-tas }); } - composer.pendingTask = composer.pendingTask.catch(function (e) { - logger.error(e); - }).then(function () { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(function () { + completeCompositionTask(composer); + }, function (reason) { + completeCompositionTask(composer); + throw reason; }); } + function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } + } + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; @@ -129,9 +130,6 @@ System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-tas return { setters: [function (_aureliaDependencyInjection) { Container = _aureliaDependencyInjection.Container; - inject = _aureliaDependencyInjection.inject; - }, function (_aureliaLogging) { - LogManager = _aureliaLogging; }, function (_aureliaTaskQueue) { TaskQueue = _aureliaTaskQueue.TaskQueue; }, function (_aureliaTemplating) { @@ -147,9 +145,11 @@ System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-tas DOM = _aureliaPal.DOM; }], execute: function () { - logger = LogManager.getLogger('templating-resources'); + _export('Compose', Compose = (_dec = customElement('compose'), _dec(_class = noView(_class = (_class2 = function () { + Compose.inject = function inject() { + return [DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue]; + }; - _export('Compose', Compose = (_dec = customElement('compose'), _dec2 = inject(DOM.Element, Container, CompositionEngine, ViewSlot, ViewResources, TaskQueue), _dec(_class = noView(_class = _dec2(_class = (_class2 = function () { function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { @@ -182,12 +182,13 @@ System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-tas this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } }; Compose.prototype.unbind = function unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; var returnToCache = true; @@ -223,7 +224,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-logging', 'aurelia-tas }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'swapOrder', [bindable], { enumerable: true, initializer: null - })), _class2)) || _class) || _class) || _class)); + })), _class2)) || _class) || _class)); _export('Compose', Compose); } diff --git a/dist/system/debounce-binding-behavior.js b/dist/system/debounce-binding-behavior.js index f9c4dd7..7a09b3c 100644 --- a/dist/system/debounce-binding-behavior.js +++ b/dist/system/debounce-binding-behavior.js @@ -3,7 +3,7 @@ System.register(['aurelia-binding'], function (_export, _context) { "use strict"; - var bindingMode, sourceContext, targetContext, unset, DebounceBindingBehavior; + var bindingMode, sourceContext, targetContext, bindingBehavior, _dec, _class, unset, DebounceBindingBehavior; @@ -31,9 +31,9 @@ System.register(['aurelia-binding'], function (_export, _context) { state.oldValue = oldValue; } state.timeoutId = setTimeout(function () { - var ov = state.oldValue; + var _oldValue = state.oldValue; state.oldValue = unset; - _this2.debouncedMethod(context, newValue, ov); + _this2.debouncedMethod(context, newValue, _oldValue); }, state.delay); } @@ -42,11 +42,12 @@ System.register(['aurelia-binding'], function (_export, _context) { bindingMode = _aureliaBinding.bindingMode; sourceContext = _aureliaBinding.sourceContext; targetContext = _aureliaBinding.targetContext; + bindingBehavior = _aureliaBinding.bindingBehavior; }], execute: function () { unset = {}; - _export('DebounceBindingBehavior', DebounceBindingBehavior = function () { + _export('DebounceBindingBehavior', DebounceBindingBehavior = (_dec = bindingBehavior('debounce'), _dec(_class = function () { function DebounceBindingBehavior() { } @@ -82,7 +83,7 @@ System.register(['aurelia-binding'], function (_export, _context) { }; return DebounceBindingBehavior; - }()); + }()) || _class)); _export('DebounceBindingBehavior', DebounceBindingBehavior); } diff --git a/dist/system/focus.js b/dist/system/focus.js index 3e17533..e112a76 100644 --- a/dist/system/focus.js +++ b/dist/system/focus.js @@ -1,9 +1,9 @@ 'use strict'; -System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-injection', 'aurelia-task-queue', 'aurelia-pal'], function (_export, _context) { +System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-task-queue', 'aurelia-pal'], function (_export, _context) { "use strict"; - var customAttribute, bindingMode, inject, TaskQueue, DOM, _dec, _dec2, _class, Focus; + var customAttribute, bindingMode, TaskQueue, DOM, _dec, _class, Focus; @@ -12,15 +12,17 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in customAttribute = _aureliaTemplating.customAttribute; }, function (_aureliaBinding) { bindingMode = _aureliaBinding.bindingMode; - }, function (_aureliaDependencyInjection) { - inject = _aureliaDependencyInjection.inject; }, function (_aureliaTaskQueue) { TaskQueue = _aureliaTaskQueue.TaskQueue; }, function (_aureliaPal) { DOM = _aureliaPal.DOM; }], execute: function () { - _export('Focus', Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec2 = inject(DOM.Element, TaskQueue), _dec(_class = _dec2(_class = function () { + _export('Focus', Focus = (_dec = customAttribute('focus', bindingMode.twoWay), _dec(_class = function () { + Focus.inject = function inject() { + return [DOM.Element, TaskQueue]; + }; + function Focus(element, taskQueue) { @@ -77,7 +79,7 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in }; return Focus; - }()) || _class) || _class)); + }()) || _class)); _export('Focus', Focus); } diff --git a/dist/system/hide.js b/dist/system/hide.js index abc1268..85b606c 100644 --- a/dist/system/hide.js +++ b/dist/system/hide.js @@ -3,13 +3,12 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia-pal', './aurelia-hide-style'], function (_export, _context) { "use strict"; - var inject, Optional, customAttribute, Animator, DOM, injectAureliaHideStyleAtBoundary, aureliaHideClassName, _dec, _dec2, _class, Hide; + var Optional, customAttribute, Animator, DOM, injectAureliaHideStyleAtBoundary, aureliaHideClassName, _dec, _class, Hide; return { setters: [function (_aureliaDependencyInjection) { - inject = _aureliaDependencyInjection.inject; Optional = _aureliaDependencyInjection.Optional; }, function (_aureliaTemplating) { customAttribute = _aureliaTemplating.customAttribute; @@ -21,7 +20,11 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia- aureliaHideClassName = _aureliaHideStyle.aureliaHideClassName; }], execute: function () { - _export('Hide', Hide = (_dec = customAttribute('hide'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = function () { + _export('Hide', Hide = (_dec = customAttribute('hide'), _dec(_class = function () { + Hide.inject = function inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + }; + function Hide(element, animator, domBoundary) { @@ -47,7 +50,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia- }; return Hide; - }()) || _class) || _class)); + }()) || _class)); _export('Hide', Hide); } diff --git a/dist/system/repeat.js b/dist/system/repeat.js index 9cace40..51fcd41 100644 --- a/dist/system/repeat.js +++ b/dist/system/repeat.js @@ -161,6 +161,8 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem }; Repeat.prototype.itemsChanged = function itemsChanged() { + var _this2 = this; + this._unsubscribeCollection(); if (!this.scope) { @@ -176,7 +178,11 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(function () { + _this2.ignoreMutation = false; + }); }; Repeat.prototype._getInnerCollection = function _getInnerCollection() { @@ -191,11 +197,14 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); }; Repeat.prototype.handleInnerCollectionMutated = function handleInnerCollectionMutated(collection, changes) { - var _this2 = this; + var _this3 = this; if (!this.collectionObserver) { return; @@ -207,7 +216,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-binding', 'aurelia-tem this.ignoreMutation = true; var newItems = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); this.observerLocator.taskQueue.queueMicroTask(function () { - return _this2.ignoreMutation = false; + return _this3.ignoreMutation = false; }); if (newItems === this.items) { diff --git a/dist/system/self-binding-behavior.js b/dist/system/self-binding-behavior.js index b03877b..04611a5 100644 --- a/dist/system/self-binding-behavior.js +++ b/dist/system/self-binding-behavior.js @@ -1,9 +1,9 @@ 'use strict'; -System.register([], function (_export, _context) { +System.register(['aurelia-binding'], function (_export, _context) { "use strict"; - var SelfBindingBehavior; + var bindingBehavior, _dec, _class, SelfBindingBehavior; @@ -18,9 +18,11 @@ System.register([], function (_export, _context) { } return { - setters: [], + setters: [function (_aureliaBinding) { + bindingBehavior = _aureliaBinding.bindingBehavior; + }], execute: function () { - _export('SelfBindingBehavior', SelfBindingBehavior = function () { + _export('SelfBindingBehavior', SelfBindingBehavior = (_dec = bindingBehavior('self'), _dec(_class = function () { function SelfBindingBehavior() { } @@ -37,7 +39,7 @@ System.register([], function (_export, _context) { }; return SelfBindingBehavior; - }()); + }()) || _class)); _export('SelfBindingBehavior', SelfBindingBehavior); } diff --git a/dist/system/show.js b/dist/system/show.js index 232b86e..097ceb3 100644 --- a/dist/system/show.js +++ b/dist/system/show.js @@ -3,13 +3,12 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia-pal', './aurelia-hide-style'], function (_export, _context) { "use strict"; - var inject, Optional, customAttribute, Animator, DOM, injectAureliaHideStyleAtBoundary, aureliaHideClassName, _dec, _dec2, _class, Show; + var Optional, customAttribute, Animator, DOM, injectAureliaHideStyleAtBoundary, aureliaHideClassName, _dec, _class, Show; return { setters: [function (_aureliaDependencyInjection) { - inject = _aureliaDependencyInjection.inject; Optional = _aureliaDependencyInjection.Optional; }, function (_aureliaTemplating) { customAttribute = _aureliaTemplating.customAttribute; @@ -21,7 +20,11 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia- aureliaHideClassName = _aureliaHideStyle.aureliaHideClassName; }], execute: function () { - _export('Show', Show = (_dec = customAttribute('show'), _dec2 = inject(DOM.Element, Animator, Optional.of(DOM.boundary, true)), _dec(_class = _dec2(_class = function () { + _export('Show', Show = (_dec = customAttribute('show'), _dec(_class = function () { + Show.inject = function inject() { + return [DOM.Element, Animator, Optional.of(DOM.boundary, true)]; + }; + function Show(element, animator, domBoundary) { @@ -47,7 +50,7 @@ System.register(['aurelia-dependency-injection', 'aurelia-templating', 'aurelia- }; return Show; - }()) || _class) || _class)); + }()) || _class)); _export('Show', Show); } diff --git a/dist/system/signal-binding-behavior.js b/dist/system/signal-binding-behavior.js index 507dca0..99c83dd 100644 --- a/dist/system/signal-binding-behavior.js +++ b/dist/system/signal-binding-behavior.js @@ -1,18 +1,20 @@ 'use strict'; -System.register(['./binding-signaler'], function (_export, _context) { +System.register(['aurelia-binding', './binding-signaler'], function (_export, _context) { "use strict"; - var BindingSignaler, SignalBindingBehavior; + var bindingBehavior, BindingSignaler, _dec, _class, SignalBindingBehavior; return { - setters: [function (_bindingSignaler) { + setters: [function (_aureliaBinding) { + bindingBehavior = _aureliaBinding.bindingBehavior; + }, function (_bindingSignaler) { BindingSignaler = _bindingSignaler.BindingSignaler; }], execute: function () { - _export('SignalBindingBehavior', SignalBindingBehavior = function () { + _export('SignalBindingBehavior', SignalBindingBehavior = (_dec = bindingBehavior('signal'), _dec(_class = function () { SignalBindingBehavior.inject = function inject() { return [BindingSignaler]; }; @@ -64,7 +66,7 @@ System.register(['./binding-signaler'], function (_export, _context) { }; return SignalBindingBehavior; - }()); + }()) || _class)); _export('SignalBindingBehavior', SignalBindingBehavior); } diff --git a/dist/system/throttle-binding-behavior.js b/dist/system/throttle-binding-behavior.js index f794346..86ca480 100644 --- a/dist/system/throttle-binding-behavior.js +++ b/dist/system/throttle-binding-behavior.js @@ -3,7 +3,7 @@ System.register(['aurelia-binding'], function (_export, _context) { "use strict"; - var bindingMode, ThrottleBindingBehavior; + var bindingMode, bindingBehavior, _dec, _class, ThrottleBindingBehavior; @@ -32,9 +32,10 @@ System.register(['aurelia-binding'], function (_export, _context) { return { setters: [function (_aureliaBinding) { bindingMode = _aureliaBinding.bindingMode; + bindingBehavior = _aureliaBinding.bindingBehavior; }], execute: function () { - _export('ThrottleBindingBehavior', ThrottleBindingBehavior = function () { + _export('ThrottleBindingBehavior', ThrottleBindingBehavior = (_dec = bindingBehavior('throttle'), _dec(_class = function () { function ThrottleBindingBehavior() { } @@ -70,7 +71,7 @@ System.register(['aurelia-binding'], function (_export, _context) { }; return ThrottleBindingBehavior; - }()); + }()) || _class)); _export('ThrottleBindingBehavior', ThrottleBindingBehavior); } diff --git a/dist/system/update-trigger-binding-behavior.js b/dist/system/update-trigger-binding-behavior.js index ff75cf1..c4a7388 100644 --- a/dist/system/update-trigger-binding-behavior.js +++ b/dist/system/update-trigger-binding-behavior.js @@ -3,7 +3,7 @@ System.register(['aurelia-binding'], function (_export, _context) { "use strict"; - var bindingMode, EventSubscriber, eventNamesRequired, notApplicableMessage, UpdateTriggerBindingBehavior; + var bindingMode, EventSubscriber, bindingBehavior, _dec, _class, eventNamesRequired, notApplicableMessage, UpdateTriggerBindingBehavior; @@ -11,12 +11,13 @@ System.register(['aurelia-binding'], function (_export, _context) { setters: [function (_aureliaBinding) { bindingMode = _aureliaBinding.bindingMode; EventSubscriber = _aureliaBinding.EventSubscriber; + bindingBehavior = _aureliaBinding.bindingBehavior; }], execute: function () { eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; - _export('UpdateTriggerBindingBehavior', UpdateTriggerBindingBehavior = function () { + _export('UpdateTriggerBindingBehavior', UpdateTriggerBindingBehavior = (_dec = bindingBehavior('updateTrigger'), _dec(_class = function () { function UpdateTriggerBindingBehavior() { } @@ -52,7 +53,7 @@ System.register(['aurelia-binding'], function (_export, _context) { }; return UpdateTriggerBindingBehavior; - }()); + }()) || _class)); _export('UpdateTriggerBindingBehavior', UpdateTriggerBindingBehavior); } diff --git a/dist/temp/aurelia-templating-resources.js b/dist/temp/aurelia-templating-resources.js index a7d7319..e10761b 100644 --- a/dist/temp/aurelia-templating-resources.js +++ b/dist/temp/aurelia-templating-resources.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.Repeat = exports.RepeatStrategyLocator = exports.Show = exports.Hide = exports.SignalBindingBehavior = exports.SanitizeHTMLValueConverter = exports.If = exports.Else = exports.SetRepeatStrategy = exports.NumberRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.AbstractRepeater = exports.lifecycleOptionalBehaviors = exports.AttrBindingBehavior = exports.aureliaHideClassName = exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.BindingSignaler = exports.Compose = exports.DebounceBindingBehavior = exports.Focus = exports.HTMLSanitizer = exports.IfCore = exports.NullRepeatStrategy = exports.Replaceable = exports.SelfBindingBehavior = exports.ThrottleBindingBehavior = exports.UpdateTriggerBindingBehavior = exports.With = undefined; +exports.Repeat = exports.RepeatStrategyLocator = exports.Show = exports.Hide = exports.SignalBindingBehavior = exports.SanitizeHTMLValueConverter = exports.If = exports.Else = exports.SetRepeatStrategy = exports.NumberRepeatStrategy = exports.MapRepeatStrategy = exports.ArrayRepeatStrategy = exports.AbstractRepeater = exports.lifecycleOptionalBehaviors = exports.AttrBindingBehavior = exports.aureliaHideClassName = exports.TwoWayBindingBehavior = exports.FromViewBindingBehavior = exports.ToViewBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.BindingSignaler = exports.Compose = exports.DebounceBindingBehavior = exports.Focus = exports.HTMLSanitizer = exports.IfCore = exports.NullRepeatStrategy = exports.Replaceable = exports.SelfBindingBehavior = exports.ThrottleBindingBehavior = exports.UpdateTriggerBindingBehavior = exports.With = undefined; -var _dec, _dec2, _class, _dec3, _dec4, _class2, _dec5, _dec6, _class3, _dec10, _dec11, _class6, _desc, _value, _class7, _descriptor, _descriptor2, _descriptor3, _descriptor4, _dec12, _class10, _dec13, _class11, _dec14, _class12, _dec15, _dec16, _class13, _dec17, _dec18, _dec19, _class14, _desc2, _value2, _class15, _descriptor5, _descriptor6, _dec20, _dec21, _class17, _dec22, _dec23, _class18, _dec24, _dec25, _class19, _dec26, _dec27, _class20, _desc3, _value3, _class21, _descriptor7, _descriptor8, _descriptor9, _descriptor10; +var _dec, _dec2, _class, _dec3, _class2, _dec4, _class3, _dec5, _class4, _dec6, _dec7, _class5, _dec8, _class6, _dec11, _class8, _dec13, _class10, _desc, _value, _class11, _descriptor, _descriptor2, _descriptor3, _descriptor4, _dec14, _dec15, _class14, _dec16, _dec17, _class15, _dec18, _dec19, _class16, _dec20, _dec21, _class17, _dec22, _dec23, _class18, _dec24, _class19, _dec25, _dec26, _class20, _dec27, _dec28, _dec29, _class21, _desc2, _value2, _class22, _descriptor5, _descriptor6, _dec30, _dec31, _class24, _dec32, _class25, _dec33, _class26, _dec34, _class27, _dec35, _dec36, _class28, _desc3, _value3, _class29, _descriptor7, _descriptor8, _descriptor9, _descriptor10; exports.updateOverrideContexts = updateOverrideContexts; exports.createFullOverrideContext = createFullOverrideContext; @@ -23,10 +23,6 @@ exports.viewsRequireLifecycle = viewsRequireLifecycle; exports.getElementName = getElementName; exports.configure = configure; -var _aureliaLogging = require('aurelia-logging'); - -var LogManager = _interopRequireWildcard(_aureliaLogging); - var _aureliaDependencyInjection = require('aurelia-dependency-injection'); var _aureliaTemplating = require('aurelia-templating'); @@ -43,8 +39,6 @@ var _aureliaPath = require('aurelia-path'); var _aureliaMetadata = require('aurelia-metadata'); -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - function _initDefineProp(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { @@ -135,7 +129,7 @@ var With = exports.With = (_dec = (0, _aureliaTemplating.customAttribute)('with' var eventNamesRequired = 'The updateTrigger binding behavior requires at least one event name argument: eg '; var notApplicableMessage = 'The updateTrigger binding behavior can only be applied to two-way/ from-view bindings on input/select elements.'; -var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = function () { +var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = (_dec3 = (0, _aureliaBinding.bindingBehavior)('updateTrigger'), _dec3(_class2 = function () { function UpdateTriggerBindingBehavior() { _classCallCheck(this, UpdateTriggerBindingBehavior); } @@ -171,7 +165,8 @@ var UpdateTriggerBindingBehavior = exports.UpdateTriggerBindingBehavior = functi }; return UpdateTriggerBindingBehavior; -}(); +}()) || _class2); + function throttle(newValue) { var _this = this; @@ -195,7 +190,7 @@ function throttle(newValue) { } } -var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = function () { +var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = (_dec4 = (0, _aureliaBinding.bindingBehavior)('throttle'), _dec4(_class3 = function () { function ThrottleBindingBehavior() { _classCallCheck(this, ThrottleBindingBehavior); } @@ -231,7 +226,8 @@ var ThrottleBindingBehavior = exports.ThrottleBindingBehavior = function () { }; return ThrottleBindingBehavior; -}(); +}()) || _class3); + function findOriginalEventTarget(event) { return event.path && event.path[0] || event.deepPath && event.deepPath[0] || event.target; @@ -243,7 +239,7 @@ function handleSelfEvent(event) { this.selfEventCallSource(event); } -var SelfBindingBehavior = exports.SelfBindingBehavior = function () { +var SelfBindingBehavior = exports.SelfBindingBehavior = (_dec5 = (0, _aureliaBinding.bindingBehavior)('self'), _dec5(_class4 = function () { function SelfBindingBehavior() { _classCallCheck(this, SelfBindingBehavior); } @@ -260,9 +256,8 @@ var SelfBindingBehavior = exports.SelfBindingBehavior = function () { }; return SelfBindingBehavior; -}(); - -var Replaceable = exports.Replaceable = (_dec3 = (0, _aureliaTemplating.customAttribute)('replaceable'), _dec4 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec3(_class2 = (0, _aureliaTemplating.templateController)(_class2 = _dec4(_class2 = function () { +}()) || _class4); +var Replaceable = exports.Replaceable = (_dec6 = (0, _aureliaTemplating.customAttribute)('replaceable'), _dec7 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec6(_class5 = (0, _aureliaTemplating.templateController)(_class5 = _dec7(_class5 = function () { function Replaceable(viewFactory, viewSlot) { _classCallCheck(this, Replaceable); @@ -285,7 +280,7 @@ var Replaceable = exports.Replaceable = (_dec3 = (0, _aureliaTemplating.customAt }; return Replaceable; -}()) || _class2) || _class2) || _class2); +}()) || _class5) || _class5) || _class5); var oneTime = _aureliaBinding.bindingMode.oneTime; @@ -487,7 +482,11 @@ var HTMLSanitizer = exports.HTMLSanitizer = function () { return HTMLSanitizer; }(); -var Focus = exports.Focus = (_dec5 = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec6 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue), _dec5(_class3 = _dec6(_class3 = function () { +var Focus = exports.Focus = (_dec8 = (0, _aureliaTemplating.customAttribute)('focus', _aureliaBinding.bindingMode.twoWay), _dec8(_class6 = function () { + Focus.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTaskQueue.TaskQueue]; + }; + function Focus(element, taskQueue) { _classCallCheck(this, Focus); @@ -544,11 +543,11 @@ var Focus = exports.Focus = (_dec5 = (0, _aureliaTemplating.customAttribute)('fo }; return Focus; -}()) || _class3) || _class3); +}()) || _class6); function _createDynamicElement(name, viewUrl, bindableNames) { - var _dec7, _dec8, _class4; + var _dec9, _dec10, _class7; - var DynamicElement = (_dec7 = (0, _aureliaTemplating.customElement)(name), _dec8 = (0, _aureliaTemplating.useView)(viewUrl), _dec7(_class4 = _dec8(_class4 = function () { + var DynamicElement = (_dec9 = (0, _aureliaTemplating.customElement)(name), _dec10 = (0, _aureliaTemplating.useView)(viewUrl), _dec9(_class7 = _dec10(_class7 = function () { function DynamicElement() { _classCallCheck(this, DynamicElement); } @@ -558,7 +557,7 @@ function _createDynamicElement(name, viewUrl, bindableNames) { }; return DynamicElement; - }()) || _class4) || _class4); + }()) || _class7) || _class7); for (var i = 0, ii = bindableNames.length; i < ii; ++i) { (0, _aureliaTemplating.bindable)(bindableNames[i])(DynamicElement); @@ -592,13 +591,13 @@ function debounceCall(context, newValue, oldValue) { state.oldValue = oldValue; } state.timeoutId = setTimeout(function () { - var ov = state.oldValue; + var _oldValue = state.oldValue; state.oldValue = unset; - _this5.debouncedMethod(context, newValue, ov); + _this5.debouncedMethod(context, newValue, _oldValue); }, state.delay); } -var DebounceBindingBehavior = exports.DebounceBindingBehavior = function () { +var DebounceBindingBehavior = exports.DebounceBindingBehavior = (_dec11 = (0, _aureliaBinding.bindingBehavior)('debounce'), _dec11(_class8 = function () { function DebounceBindingBehavior() { _classCallCheck(this, DebounceBindingBehavior); } @@ -634,7 +633,7 @@ var DebounceBindingBehavior = exports.DebounceBindingBehavior = function () { }; return DebounceBindingBehavior; -}(); +}()) || _class8); var cssUrlMatcher = /url\((?!['"]data)([^)]+)\)/gi; @@ -715,9 +714,9 @@ var CSSViewEngineHooks = function () { }(); function _createCSSResource(address) { - var _dec9, _class5; + var _dec12, _class9; - var ViewCSS = (_dec9 = (0, _aureliaTemplating.resource)(new CSSResource(address)), _dec9(_class5 = function (_CSSViewEngineHooks) { + var ViewCSS = (_dec12 = (0, _aureliaTemplating.resource)(new CSSResource(address)), _dec12(_class9 = function (_CSSViewEngineHooks) { _inherits(ViewCSS, _CSSViewEngineHooks); function ViewCSS() { @@ -727,14 +726,16 @@ function _createCSSResource(address) { } return ViewCSS; - }(CSSViewEngineHooks)) || _class5); + }(CSSViewEngineHooks)) || _class9); return ViewCSS; } -var logger = LogManager.getLogger('templating-resources'); +var Compose = exports.Compose = (_dec13 = (0, _aureliaTemplating.customElement)('compose'), _dec13(_class10 = (0, _aureliaTemplating.noView)(_class10 = (_class11 = function () { + Compose.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue]; + }; -var Compose = exports.Compose = (_dec10 = (0, _aureliaTemplating.customElement)('compose'), _dec11 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaDependencyInjection.Container, _aureliaTemplating.CompositionEngine, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaTaskQueue.TaskQueue), _dec10(_class6 = (0, _aureliaTemplating.noView)(_class6 = _dec11(_class6 = (_class7 = function () { function Compose(element, container, compositionEngine, viewSlot, viewResources, taskQueue) { _classCallCheck(this, Compose); @@ -767,12 +768,13 @@ var Compose = exports.Compose = (_dec10 = (0, _aureliaTemplating.customElement)( this.changes.view = this.view; this.changes.viewModel = this.viewModel; this.changes.model = this.model; - processChanges(this); + if (!this.pendingTask) { + processChanges(this); + } }; Compose.prototype.unbind = function unbind() { this.changes = Object.create(null); - this.pendingTask = null; this.bindingContext = null; this.overrideContext = null; var returnToCache = true; @@ -796,19 +798,19 @@ var Compose = exports.Compose = (_dec10 = (0, _aureliaTemplating.customElement)( }; return Compose; -}(), (_descriptor = _applyDecoratedDescriptor(_class7.prototype, 'model', [_aureliaTemplating.bindable], { +}(), (_descriptor = _applyDecoratedDescriptor(_class11.prototype, 'model', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor2 = _applyDecoratedDescriptor(_class7.prototype, 'view', [_aureliaTemplating.bindable], { +}), _descriptor2 = _applyDecoratedDescriptor(_class11.prototype, 'view', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor3 = _applyDecoratedDescriptor(_class7.prototype, 'viewModel', [_aureliaTemplating.bindable], { +}), _descriptor3 = _applyDecoratedDescriptor(_class11.prototype, 'viewModel', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor4 = _applyDecoratedDescriptor(_class7.prototype, 'swapOrder', [_aureliaTemplating.bindable], { +}), _descriptor4 = _applyDecoratedDescriptor(_class11.prototype, 'swapOrder', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -})), _class7)) || _class6) || _class6) || _class6); +})), _class11)) || _class10) || _class10); function isEmpty(obj) { @@ -863,20 +865,21 @@ function processChanges(composer) { }); } - composer.pendingTask = composer.pendingTask.catch(function (e) { - logger.error(e); - }).then(function () { - if (!composer.pendingTask) { - return; - } - - composer.pendingTask = null; - if (!isEmpty(composer.changes)) { - processChanges(composer); - } + composer.pendingTask = composer.pendingTask.then(function () { + completeCompositionTask(composer); + }, function (reason) { + completeCompositionTask(composer); + throw reason; }); } +function completeCompositionTask(composer) { + composer.pendingTask = null; + if (!isEmpty(composer.changes)) { + processChanges(composer); + } +} + function requestUpdate(composer) { if (composer.pendingTask || composer.updateRequested) { return; @@ -920,21 +923,31 @@ var modeBindingBehavior = { } }; -var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec12 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec12(_class10 = function OneTimeBindingBehavior() { +var OneTimeBindingBehavior = exports.OneTimeBindingBehavior = (_dec14 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec15 = (0, _aureliaBinding.bindingBehavior)('oneTime'), _dec14(_class14 = _dec15(_class14 = function OneTimeBindingBehavior() { _classCallCheck(this, OneTimeBindingBehavior); this.mode = _aureliaBinding.bindingMode.oneTime; -}) || _class10); -var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec13 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec13(_class11 = function OneWayBindingBehavior() { +}) || _class14) || _class14); +var OneWayBindingBehavior = exports.OneWayBindingBehavior = (_dec16 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec17 = (0, _aureliaBinding.bindingBehavior)('oneWay'), _dec16(_class15 = _dec17(_class15 = function OneWayBindingBehavior() { _classCallCheck(this, OneWayBindingBehavior); - this.mode = _aureliaBinding.bindingMode.oneWay; -}) || _class11); -var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec14 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec14(_class12 = function TwoWayBindingBehavior() { + this.mode = _aureliaBinding.bindingMode.toView; +}) || _class15) || _class15); +var ToViewBindingBehavior = exports.ToViewBindingBehavior = (_dec18 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec19 = (0, _aureliaBinding.bindingBehavior)('toView'), _dec18(_class16 = _dec19(_class16 = function ToViewBindingBehavior() { + _classCallCheck(this, ToViewBindingBehavior); + + this.mode = _aureliaBinding.bindingMode.toView; +}) || _class16) || _class16); +var FromViewBindingBehavior = exports.FromViewBindingBehavior = (_dec20 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec21 = (0, _aureliaBinding.bindingBehavior)('fromView'), _dec20(_class17 = _dec21(_class17 = function FromViewBindingBehavior() { + _classCallCheck(this, FromViewBindingBehavior); + + this.mode = _aureliaBinding.bindingMode.fromView; +}) || _class17) || _class17); +var TwoWayBindingBehavior = exports.TwoWayBindingBehavior = (_dec22 = (0, _aureliaMetadata.mixin)(modeBindingBehavior), _dec23 = (0, _aureliaBinding.bindingBehavior)('twoWay'), _dec22(_class18 = _dec23(_class18 = function TwoWayBindingBehavior() { _classCallCheck(this, TwoWayBindingBehavior); this.mode = _aureliaBinding.bindingMode.twoWay; -}) || _class12); +}) || _class18) || _class18); var aureliaHideClassName = exports.aureliaHideClassName = 'aurelia-hide'; var aureliaHideClass = '.' + aureliaHideClassName + ' { display:none !important; }'; @@ -950,7 +963,7 @@ function injectAureliaHideStyleAtBoundary(domBoundary) { } } -var AttrBindingBehavior = exports.AttrBindingBehavior = function () { +var AttrBindingBehavior = exports.AttrBindingBehavior = (_dec24 = (0, _aureliaBinding.bindingBehavior)('attr'), _dec24(_class19 = function () { function AttrBindingBehavior() { _classCallCheck(this, AttrBindingBehavior); } @@ -962,8 +975,7 @@ var AttrBindingBehavior = exports.AttrBindingBehavior = function () { AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {}; return AttrBindingBehavior; -}(); - +}()) || _class19); var lifecycleOptionalBehaviors = exports.lifecycleOptionalBehaviors = ['focus', 'if', 'else', 'repeat', 'show', 'hide', 'with']; function behaviorRequiresLifecycle(instruction) { @@ -1556,7 +1568,7 @@ var SetRepeatStrategy = exports.SetRepeatStrategy = function () { return SetRepeatStrategy; }(); -var Else = exports.Else = (_dec15 = (0, _aureliaTemplating.customAttribute)('else'), _dec16 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec15(_class13 = (0, _aureliaTemplating.templateController)(_class13 = _dec16(_class13 = function (_IfCore) { +var Else = exports.Else = (_dec25 = (0, _aureliaTemplating.customAttribute)('else'), _dec26 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec25(_class20 = (0, _aureliaTemplating.templateController)(_class20 = _dec26(_class20 = function (_IfCore) { _inherits(Else, _IfCore); function Else(viewFactory, viewSlot) { @@ -1591,8 +1603,8 @@ var Else = exports.Else = (_dec15 = (0, _aureliaTemplating.customAttribute)('els }; return Else; -}(IfCore)) || _class13) || _class13) || _class13); -var If = exports.If = (_dec17 = (0, _aureliaTemplating.customAttribute)('if'), _dec18 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec19 = (0, _aureliaTemplating.bindable)({ primaryProperty: true }), _dec17(_class14 = (0, _aureliaTemplating.templateController)(_class14 = _dec18(_class14 = (_class15 = function (_IfCore2) { +}(IfCore)) || _class20) || _class20) || _class20); +var If = exports.If = (_dec27 = (0, _aureliaTemplating.customAttribute)('if'), _dec28 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.ViewSlot), _dec29 = (0, _aureliaTemplating.bindable)({ primaryProperty: true }), _dec27(_class21 = (0, _aureliaTemplating.templateController)(_class21 = _dec28(_class21 = (_class22 = function (_IfCore2) { _inherits(If, _IfCore2); function If() { @@ -1662,14 +1674,14 @@ var If = exports.If = (_dec17 = (0, _aureliaTemplating.customAttribute)('if'), _ }; return If; -}(IfCore), (_descriptor5 = _applyDecoratedDescriptor(_class15.prototype, 'condition', [_dec19], { +}(IfCore), (_descriptor5 = _applyDecoratedDescriptor(_class22.prototype, 'condition', [_dec29], { enumerable: true, initializer: null -}), _descriptor6 = _applyDecoratedDescriptor(_class15.prototype, 'swapOrder', [_aureliaTemplating.bindable], { +}), _descriptor6 = _applyDecoratedDescriptor(_class22.prototype, 'swapOrder', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -})), _class15)) || _class14) || _class14) || _class14); -var SanitizeHTMLValueConverter = exports.SanitizeHTMLValueConverter = (_dec20 = (0, _aureliaBinding.valueConverter)('sanitizeHTML'), _dec21 = (0, _aureliaDependencyInjection.inject)(HTMLSanitizer), _dec20(_class17 = _dec21(_class17 = function () { +})), _class22)) || _class21) || _class21) || _class21); +var SanitizeHTMLValueConverter = exports.SanitizeHTMLValueConverter = (_dec30 = (0, _aureliaBinding.valueConverter)('sanitizeHTML'), _dec31 = (0, _aureliaDependencyInjection.inject)(HTMLSanitizer), _dec30(_class24 = _dec31(_class24 = function () { function SanitizeHTMLValueConverter(sanitizer) { _classCallCheck(this, SanitizeHTMLValueConverter); @@ -1685,7 +1697,7 @@ var SanitizeHTMLValueConverter = exports.SanitizeHTMLValueConverter = (_dec20 = }; return SanitizeHTMLValueConverter; -}()) || _class17) || _class17); +}()) || _class24) || _class24); function getElementName(address) { return (/([^\/^\?]+)\.html/i.exec(address)[1].toLowerCase() ); @@ -1718,7 +1730,7 @@ function configure(config) { }); } -var SignalBindingBehavior = exports.SignalBindingBehavior = function () { +var SignalBindingBehavior = exports.SignalBindingBehavior = (_dec32 = (0, _aureliaBinding.bindingBehavior)('signal'), _dec32(_class25 = function () { SignalBindingBehavior.inject = function inject() { return [BindingSignaler]; }; @@ -1770,9 +1782,12 @@ var SignalBindingBehavior = exports.SignalBindingBehavior = function () { }; return SignalBindingBehavior; -}(); +}()) || _class25); +var Hide = exports.Hide = (_dec33 = (0, _aureliaTemplating.customAttribute)('hide'), _dec33(_class26 = function () { + Hide.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; -var Hide = exports.Hide = (_dec22 = (0, _aureliaTemplating.customAttribute)('hide'), _dec23 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec22(_class18 = _dec23(_class18 = function () { function Hide(element, animator, domBoundary) { _classCallCheck(this, Hide); @@ -1798,8 +1813,12 @@ var Hide = exports.Hide = (_dec22 = (0, _aureliaTemplating.customAttribute)('hid }; return Hide; -}()) || _class18) || _class18); -var Show = exports.Show = (_dec24 = (0, _aureliaTemplating.customAttribute)('show'), _dec25 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)), _dec24(_class19 = _dec25(_class19 = function () { +}()) || _class26); +var Show = exports.Show = (_dec34 = (0, _aureliaTemplating.customAttribute)('show'), _dec34(_class27 = function () { + Show.inject = function inject() { + return [_aureliaPal.DOM.Element, _aureliaTemplating.Animator, _aureliaDependencyInjection.Optional.of(_aureliaPal.DOM.boundary, true)]; + }; + function Show(element, animator, domBoundary) { _classCallCheck(this, Show); @@ -1825,7 +1844,7 @@ var Show = exports.Show = (_dec24 = (0, _aureliaTemplating.customAttribute)('sho }; return Show; -}()) || _class19) || _class19); +}()) || _class27); var RepeatStrategyLocator = exports.RepeatStrategyLocator = function () { function RepeatStrategyLocator() { @@ -1871,7 +1890,7 @@ var RepeatStrategyLocator = exports.RepeatStrategyLocator = function () { return RepeatStrategyLocator; }(); -var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)('repeat'), _dec27 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.TargetInstruction, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaBinding.ObserverLocator, RepeatStrategyLocator), _dec26(_class20 = (0, _aureliaTemplating.templateController)(_class20 = _dec27(_class20 = (_class21 = function (_AbstractRepeater) { +var Repeat = exports.Repeat = (_dec35 = (0, _aureliaTemplating.customAttribute)('repeat'), _dec36 = (0, _aureliaDependencyInjection.inject)(_aureliaTemplating.BoundViewFactory, _aureliaTemplating.TargetInstruction, _aureliaTemplating.ViewSlot, _aureliaTemplating.ViewResources, _aureliaBinding.ObserverLocator, RepeatStrategyLocator), _dec35(_class28 = (0, _aureliaTemplating.templateController)(_class28 = _dec36(_class28 = (_class29 = function (_AbstractRepeater) { _inherits(Repeat, _AbstractRepeater); function Repeat(viewFactory, instruction, viewSlot, viewResources, observerLocator, strategyLocator) { @@ -1932,6 +1951,8 @@ var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)( }; Repeat.prototype.itemsChanged = function itemsChanged() { + var _this18 = this; + this._unsubscribeCollection(); if (!this.scope) { @@ -1947,7 +1968,11 @@ var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)( if (!this.isOneTime && !this._observeInnerCollection()) { this._observeCollection(); } + this.ignoreMutation = true; this.strategy.instanceChanged(this, items); + this.observerLocator.taskQueue.queueMicroTask(function () { + _this18.ignoreMutation = false; + }); }; Repeat.prototype._getInnerCollection = function _getInnerCollection() { @@ -1962,11 +1987,14 @@ var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)( if (!this.collectionObserver) { return; } + if (this.ignoreMutation) { + return; + } this.strategy.instanceMutated(this, collection, changes); }; Repeat.prototype.handleInnerCollectionMutated = function handleInnerCollectionMutated(collection, changes) { - var _this18 = this; + var _this19 = this; if (!this.collectionObserver) { return; @@ -1978,7 +2006,7 @@ var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)( this.ignoreMutation = true; var newItems = this.sourceExpression.evaluate(this.scope, this.lookupFunctions); this.observerLocator.taskQueue.queueMicroTask(function () { - return _this18.ignoreMutation = false; + return _this19.ignoreMutation = false; }); if (newItems === this.items) { @@ -2093,16 +2121,16 @@ var Repeat = exports.Repeat = (_dec26 = (0, _aureliaTemplating.customAttribute)( }; return Repeat; -}(AbstractRepeater), (_descriptor7 = _applyDecoratedDescriptor(_class21.prototype, 'items', [_aureliaTemplating.bindable], { +}(AbstractRepeater), (_descriptor7 = _applyDecoratedDescriptor(_class29.prototype, 'items', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor8 = _applyDecoratedDescriptor(_class21.prototype, 'local', [_aureliaTemplating.bindable], { +}), _descriptor8 = _applyDecoratedDescriptor(_class29.prototype, 'local', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor9 = _applyDecoratedDescriptor(_class21.prototype, 'key', [_aureliaTemplating.bindable], { +}), _descriptor9 = _applyDecoratedDescriptor(_class29.prototype, 'key', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -}), _descriptor10 = _applyDecoratedDescriptor(_class21.prototype, 'value', [_aureliaTemplating.bindable], { +}), _descriptor10 = _applyDecoratedDescriptor(_class29.prototype, 'value', [_aureliaTemplating.bindable], { enumerable: true, initializer: null -})), _class21)) || _class20) || _class20) || _class20); \ No newline at end of file +})), _class29)) || _class28) || _class28) || _class28); \ No newline at end of file diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 988d29f..6f727d7 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,8 @@ + +# [1.7.0](https://github.com/aurelia/templating-resources/compare/1.6.1...1.7.0) (2018-07-02) + +* Updated resources to use new framework configuration api. + # [1.6.0](https://github.com/aurelia/templating-resources/compare/1.5.4...1.6.0) (2018-03-18) diff --git a/doc/api.json b/doc/api.json index 2734dfd..bbfc2d1 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1 +1 @@ -{"name":"aurelia-templating-resources","children":[{"id":176,"name":"AbstractRepeater","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"An abstract base class for elements and attributes that repeat\nviews."},"children":[{"id":177,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":178,"name":"new AbstractRepeater","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":179,"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"AbstractRepeater","id":176}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":336,"character":39}]},{"id":189,"name":"addView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":190,"name":"addView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a view to the repeater, binding the view to the\nprovided contexts."},"parameters":[{"id":191,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context to bind the new view to."},"type":{"type":"intrinsic","name":"any"}},{"id":192,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"A secondary binding context that can override the primary context.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":375,"character":9}]},{"id":193,"name":"insertView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":194,"name":"insertView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Inserts a view to the repeater at a specific index, binding the view to the\nprovided contexts."},"parameters":[{"id":195,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The index at which to create the new view at."},"type":{"type":"intrinsic","name":"any"}},{"id":196,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context to bind the new view to."},"type":{"type":"intrinsic","name":"any"}},{"id":197,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"A secondary binding context that can override the primary context.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":385,"character":12}]},{"id":187,"name":"matcher","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":188,"name":"matcher","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the matcher function to be used by the repeater, or null if strict matching is to be performed.","returns":"The requested matcher function.\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":366,"character":9}]},{"id":198,"name":"moveView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":199,"name":"moveView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Moves a view across the repeater."},"parameters":[{"id":200,"name":"sourceIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The index where the view should be placed at.\n"},"type":{"type":"intrinsic","name":"any"}},{"id":201,"name":"targetIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":393,"character":10}]},{"id":202,"name":"removeAllViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":203,"name":"removeAllViews","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes all views from the repeater.","returns":"\n"},"parameters":[{"id":204,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":205,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":401,"character":16}]},{"id":211,"name":"removeView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":212,"name":"removeView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes a view from the repeater at a specific index.","returns":"\n"},"parameters":[{"id":213,"name":"index","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The index of the view to be removed."},"type":{"type":"intrinsic","name":"number"}},{"id":214,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":215,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":421,"character":12}]},{"id":206,"name":"removeViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":207,"name":"removeViews","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes an array of Views from the repeater.","returns":"\n"},"parameters":[{"id":208,"name":"viewsToRemove","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The array of views to be removed."},"type":{"type":"reference","name":"Array","typeArguments":[{"type":"reference","name":"View"}]}},{"id":209,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":210,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":411,"character":13}]},{"id":216,"name":"updateBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":217,"name":"updateBindings","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Forces a particular view to update it's bindings, called as part of\nan in-place processing of items for better performance"},"parameters":[{"id":218,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"the target view for bindings updates\n"},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":429,"character":16}]},{"id":184,"name":"view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":185,"name":"view","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns a single view from the repeater at the provided index.","returns":"The requested view.\n"},"parameters":[{"id":186,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The index of the requested view."},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":359,"character":6}]},{"id":180,"name":"viewCount","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":181,"name":"viewCount","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the number of views the repeater knows about.","returns":"the number of views.\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":344,"character":11}]},{"id":182,"name":"views","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":183,"name":"views","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns all of the repeaters views as an array.","returns":"The repeater's array of views;\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":351,"character":7}]}],"groups":[{"title":"Constructors","kind":512,"children":[177]},{"title":"Methods","kind":2048,"children":[189,193,187,198,202,211,206,216,184,180,182]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":336,"character":37}],"extendedBy":[{"type":"reference","name":"Repeat","id":358}]},{"id":219,"name":"ArrayRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over an array."},"children":[{"id":220,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":221,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets an observer for the specified collection."},"parameters":[{"id":222,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The observer locator instance."},"type":{"type":"intrinsic","name":"any"}},{"id":223,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":442,"character":23}]},{"id":224,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":225,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle the repeat's collection instance changing."},"parameters":[{"id":226,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeater instance."},"type":{"type":"intrinsic","name":"any"}},{"id":227,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new array instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":449,"character":17}]},{"id":228,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":229,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle the repeat's collection instance mutating."},"parameters":[{"id":230,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeat instance."},"type":{"type":"intrinsic","name":"any"}},{"id":231,"name":"array","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The modified array."},"type":{"type":"intrinsic","name":"any"}},{"id":232,"name":"splices","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Records of array changes.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":457,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[220,224,228]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":435,"character":40}]},{"id":167,"name":"AttrBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":168,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":169,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":170,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":171,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":321,"character":6}]},{"id":172,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":173,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":174,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":175,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":322,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[168,172]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":320,"character":40}]},{"id":153,"name":"BindingSignaler","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":154,"name":"signals","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":305,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":155,"name":"signal","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":156,"name":"signal","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":157,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":306,"character":8}]}],"groups":[{"title":"Properties","kind":1024,"children":[154]},{"title":"Methods","kind":2048,"children":[155]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":304,"character":36}]},{"id":119,"name":"Compose","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Used to compose a new view / view-model template or bind to an existing instance."},"children":[{"id":124,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Compose."},"signatures":[{"id":125,"name":"new Compose","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Compose."},"parameters":[{"id":126,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The Compose element."},"type":{"type":"intrinsic","name":"any"}},{"id":127,"name":"container","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The dependency injection container instance."},"type":{"type":"intrinsic","name":"any"}},{"id":128,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"CompositionEngine instance to compose the element."},"type":{"type":"intrinsic","name":"any"}},{"id":129,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to."},"type":{"type":"intrinsic","name":"any"}},{"id":130,"name":"viewResources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Collection of resources used to compile the the view."},"type":{"type":"intrinsic","name":"any"}},{"id":131,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The TaskQueue instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Compose","id":119}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":250,"character":17}]},{"id":120,"name":"model","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":247,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":123,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":250,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":121,"name":"view","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":248,"character":6}],"type":{"type":"intrinsic","name":"any"}},{"id":122,"name":"viewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":249,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":135,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":136,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Used to set the bindingContext."},"parameters":[{"id":137,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context in which the view model is executed in."},"type":{"type":"intrinsic","name":"any"}},{"id":138,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context in which the view model is executed in.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":276,"character":6}]},{"id":132,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":133,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the component has been created."},"parameters":[{"id":134,"name":"owningView","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The view that this component was created inside of.\n"},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":268,"character":9}]},{"id":141,"name":"modelChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":142,"name":"modelChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound model changes."},"parameters":[{"id":143,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":144,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":288,"character":14}]},{"id":139,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":140,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the Compose."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":281,"character":8}]},{"id":145,"name":"viewChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":146,"name":"viewChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound view changes."},"parameters":[{"id":147,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":148,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":295,"character":13}]},{"id":149,"name":"viewModelChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":150,"name":"viewModelChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound view model changes."},"parameters":[{"id":151,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":152,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":302,"character":18}]}],"groups":[{"title":"Constructors","kind":512,"children":[124]},{"title":"Properties","kind":1024,"children":[120,123,121,122]},{"title":"Methods","kind":2048,"children":[135,132,141,139,145,149]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":246,"character":28}]},{"id":109,"name":"DebounceBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":110,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":111,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":112,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":113,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":114,"name":"delay","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":239,"character":6}]},{"id":115,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":116,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":117,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":118,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":240,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[110,115]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":238,"character":44}]},{"id":268,"name":"Else","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":269,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":270,"name":"new Else","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":271,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":272,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Else","id":268},"overwrites":{"type":"reference","name":"IfCore.__constructor","id":80}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":527,"character":42}],"overwrites":{"type":"reference","name":"IfCore.__constructor","id":80}},{"id":273,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":274,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":275,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":276,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"IfCore.bind","id":84}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":529,"character":6}],"overwrites":{"type":"reference","name":"IfCore.bind","id":84}},{"id":277,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":278,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}],"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"groups":[{"title":"Constructors","kind":512,"children":[269]},{"title":"Methods","kind":2048,"children":[273,277]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":527,"character":25}],"extendedTypes":[{"type":"reference","name":"IfCore","id":79}]},{"id":94,"name":"Focus","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"CustomAttribute that binds provided DOM element's focus attribute with a property on the viewmodel."},"children":[{"id":95,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Focus.","tags":[{"tag":"paramelement","text":"Target element on where attribute is placed on."}]},"signatures":[{"id":96,"name":"new Focus","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Focus.","tags":[{"tag":"paramelement","text":"Target element on where attribute is placed on."}]},"parameters":[{"id":97,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":98,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The TaskQueue instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Focus","id":94}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":212,"character":28}]},{"id":102,"name":"attached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":103,"name":"attached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the attribute is attached to the DOM."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":230,"character":10}]},{"id":104,"name":"detached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":105,"name":"detached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the attribute is detached from the DOM."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":235,"character":10}]},{"id":106,"name":"handleEvent","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":107,"name":"handleEvent","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":108,"name":"e","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":236,"character":13}]},{"id":99,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":100,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":101,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":225,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[95]},{"title":"Methods","kind":2048,"children":[102,104,106,99]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":212,"character":26}]},{"id":90,"name":"HTMLSanitizer","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Default Html Sanitizer to prevent script injection."},"children":[{"id":91,"name":"sanitize","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":92,"name":"sanitize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Sanitizes the provided input."},"parameters":[{"id":93,"name":"input","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The input to be sanitized.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":206,"character":10}]}],"groups":[{"title":"Methods","kind":2048,"children":[91]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":200,"character":34}]},{"id":317,"name":"Hide","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally show markup in the DOM based on the value.\n- different from \"if\" in that the markup is still added to the DOM, simply not shown."},"children":[{"id":318,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of Hide."},"signatures":[{"id":319,"name":"new Hide","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of Hide."},"parameters":[{"id":320,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Target element to conditionally hide."},"type":{"type":"intrinsic","name":"any"}},{"id":321,"name":"animator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The animator that conditionally adds or removes the aurelia-hide css class."},"type":{"type":"intrinsic","name":"any"}},{"id":322,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The DOM boundary. Used when the behavior appears within a component that utilizes the shadow DOM.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Hide","id":317}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":585,"character":27}]},{"id":328,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":329,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the Hide attribute."},"parameters":[{"id":330,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":609,"character":6}]},{"id":323,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":324,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the behavior is created."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":598,"character":9}]},{"id":325,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":326,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":327,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":604,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[318]},{"title":"Methods","kind":2048,"children":[328,323,325]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":585,"character":25}]},{"id":279,"name":"If","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally include or not include template logic depending on returned result\n- value should be Boolean or will be treated as such (truthy / falsey)"},"children":[{"id":289,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":290,"name":"new If","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":291,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":292,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"If","id":279},"inheritedFrom":{"type":"reference","name":"IfCore.__constructor","id":80}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":29}],"inheritedFrom":{"type":"reference","name":"IfCore.__constructor","id":80}},{"id":280,"name":"condition","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":537,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":281,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":538,"character":11}],"type":{"type":"union","types":[{"type":"stringLiteral","value":"before"},{"type":"stringLiteral","value":"with"},{"type":"stringLiteral","value":"after"}]}},{"id":282,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":283,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the if to the binding context and override context"},"parameters":[{"id":284,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context"},"type":{"type":"intrinsic","name":"any"}},{"id":285,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"IfCore.bind","id":84}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":545,"character":6}],"overwrites":{"type":"reference","name":"IfCore.bind","id":84}},{"id":286,"name":"conditionChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":287,"name":"conditionChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime value property changes."},"parameters":[{"id":288,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":551,"character":18}]},{"id":293,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":294,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}],"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"groups":[{"title":"Constructors","kind":512,"children":[289]},{"title":"Properties","kind":1024,"children":[280,281]},{"title":"Methods","kind":2048,"children":[282,286,293]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":536,"character":23}],"extendedTypes":[{"type":"reference","name":"IfCore","id":79}]},{"id":79,"name":"IfCore","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"For internal use only. May change without warning."},"children":[{"id":80,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":81,"name":"new IfCore","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":82,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":83,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"IfCore","id":79}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":29}]},{"id":84,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":85,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":86,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":87,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":193,"character":6}]},{"id":88,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":89,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[80]},{"title":"Methods","kind":2048,"children":[84,88]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":27}],"extendedBy":[{"type":"reference","name":"Else","id":268},{"type":"reference","name":"If","id":279}]},{"id":233,"name":"MapRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a Map."},"children":[{"id":234,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":235,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a Map observer."},"parameters":[{"id":236,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":237,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":469,"character":23}]},{"id":238,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":239,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Map entries."},"parameters":[{"id":240,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":241,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The entries to process.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":475,"character":17}]},{"id":242,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":243,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle changes in a Map collection."},"parameters":[{"id":244,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":245,"name":"map","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The underlying Map collection."},"type":{"type":"intrinsic","name":"any"}},{"id":246,"name":"records","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The change records.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":482,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[234,238,242]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":463,"character":38}]},{"id":70,"name":"NullRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over null or undefined (does nothing)"},"children":[{"id":75,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":76,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":77,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":78,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":185,"character":23}]},{"id":71,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":72,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":73,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":74,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":184,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[75,71]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":183,"character":39}]},{"id":247,"name":"NumberRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a number."},"children":[{"id":248,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":249,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Return the strategies collection observer. In this case none."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":493,"character":23}]},{"id":250,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":251,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Number."},"parameters":[{"id":252,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":253,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The Number of how many time to iterate.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":499,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[248,250]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":488,"character":41}]},{"id":158,"name":"OneTimeBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":159,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":160,"name":"new OneTimeBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"OneTimeBindingBehavior","id":158}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":308,"character":45}]}],"groups":[{"title":"Constructors","kind":512,"children":[159]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":308,"character":43}]},{"id":161,"name":"OneWayBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":162,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":163,"name":"new OneWayBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"OneWayBindingBehavior","id":161}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":311,"character":44}]}],"groups":[{"title":"Constructors","kind":512,"children":[162]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":311,"character":42}]},{"id":358,"name":"Repeat","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to iterate over iterable objects (Array, Map and Number) to genereate a template for each iteration."},"children":[{"id":363,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Repeat."},"signatures":[{"id":364,"name":"new Repeat","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Repeat."},"parameters":[{"id":365,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The factory generating the view"},"type":{"type":"intrinsic","name":"any"}},{"id":366,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The instructions for how the element should be enhanced."},"type":{"type":"intrinsic","name":"any"}},{"id":367,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to."},"type":{"type":"intrinsic","name":"any"}},{"id":368,"name":"viewResources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Collection of resources used to compile the the views."},"type":{"type":"intrinsic","name":"any"}},{"id":369,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The observer locator instance."},"type":{"type":"intrinsic","name":"any"}},{"id":370,"name":"strategyLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Repeat","id":358},"overwrites":{"type":"reference","name":"AbstractRepeater.__constructor","id":177}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":678,"character":13}],"overwrites":{"type":"reference","name":"AbstractRepeater.__constructor","id":177}},{"id":359,"name":"items","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":675,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":361,"name":"key","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":677,"character":5}],"type":{"type":"intrinsic","name":"any"}},{"id":360,"name":"local","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":676,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":362,"name":"value","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":678,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":400,"name":"addView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":401,"name":"addView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":402,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":403,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.addView","id":189}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":724,"character":9}],"overwrites":{"type":"reference","name":"AbstractRepeater.addView","id":189}},{"id":375,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":376,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the repeat to the binding context and override context."},"parameters":[{"id":377,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":378,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":697,"character":6}]},{"id":371,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":372,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":373,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":374,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":690,"character":6}]},{"id":383,"name":"handleCollectionMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":384,"name":"handleCollectionMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the underlying collection changes."},"parameters":[{"id":385,"name":"collection","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":386,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":712,"character":25}]},{"id":387,"name":"handleInnerCollectionMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":388,"name":"handleInnerCollectionMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the underlying inner collection changes."},"parameters":[{"id":389,"name":"collection","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":390,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":717,"character":30}]},{"id":404,"name":"insertView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":405,"name":"insertView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":406,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":407,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":408,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.insertView","id":193}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":725,"character":12}],"overwrites":{"type":"reference","name":"AbstractRepeater.insertView","id":193}},{"id":381,"name":"itemsChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":382,"name":"itemsChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the item property changes."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":707,"character":14}]},{"id":398,"name":"matcher","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":399,"name":"matcher","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.matcher","id":187}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":723,"character":9}],"overwrites":{"type":"reference","name":"AbstractRepeater.matcher","id":187}},{"id":409,"name":"moveView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":410,"name":"moveView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":411,"name":"sourceIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":412,"name":"targetIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.moveView","id":198}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":726,"character":10}],"overwrites":{"type":"reference","name":"AbstractRepeater.moveView","id":198}},{"id":413,"name":"removeAllViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":414,"name":"removeAllViews","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":415,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":416,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeAllViews","id":202}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":727,"character":16}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeAllViews","id":202}},{"id":422,"name":"removeView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":423,"name":"removeView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":424,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":425,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":426,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeView","id":211}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":729,"character":12}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeView","id":211}},{"id":417,"name":"removeViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":418,"name":"removeViews","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":419,"name":"viewsToRemove","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":420,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":421,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeViews","id":206}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":728,"character":13}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeViews","id":206}},{"id":379,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":380,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the repeat"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":702,"character":8}]},{"id":427,"name":"updateBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":428,"name":"updateBindings","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":429,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.updateBindings","id":216}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":730,"character":16}],"overwrites":{"type":"reference","name":"AbstractRepeater.updateBindings","id":216}},{"id":395,"name":"view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":396,"name":"view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":397,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.view","id":184}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":722,"character":6}],"overwrites":{"type":"reference","name":"AbstractRepeater.view","id":184}},{"id":391,"name":"viewCount","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":392,"name":"viewCount","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.viewCount","id":180}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":720,"character":11}],"overwrites":{"type":"reference","name":"AbstractRepeater.viewCount","id":180}},{"id":393,"name":"views","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":394,"name":"views","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.views","id":182}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":721,"character":7}],"overwrites":{"type":"reference","name":"AbstractRepeater.views","id":182}}],"groups":[{"title":"Constructors","kind":512,"children":[363]},{"title":"Properties","kind":1024,"children":[359,361,360,362]},{"title":"Methods","kind":2048,"children":[400,375,371,383,387,404,381,398,409,413,422,417,379,427,395,391,393]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":674,"character":27}],"extendedTypes":[{"type":"reference","name":"AbstractRepeater","id":176}]},{"id":345,"name":"RepeatStrategyLocator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Locates the best strategy to best repeating a template over different types of collections.\nCustom strategies can be plugged in as well."},"children":[{"id":346,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new RepeatStrategyLocator."},"signatures":[{"id":347,"name":"new RepeatStrategyLocator","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new RepeatStrategyLocator."},"type":{"type":"reference","name":"RepeatStrategyLocator","id":345}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":651,"character":44}]},{"id":348,"name":"addStrategy","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":349,"name":"addStrategy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a repeat strategy to be located when repeating a template over different collection types."},"parameters":[{"id":350,"name":"matcher","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":351,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":352,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":353,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"boolean"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":662,"character":22}]}}},{"id":354,"name":"strategy","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A repeat strategy that can iterate a specific collection type.\n"},"type":{"type":"reference","name":"RepeatStrategy","id":2}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":662,"character":13}]},{"id":355,"name":"getStrategy","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":356,"name":"getStrategy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets the best strategy to handle iteration."},"parameters":[{"id":357,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RepeatStrategy","id":2}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":667,"character":13}]}],"groups":[{"title":"Constructors","kind":512,"children":[346]},{"title":"Methods","kind":2048,"children":[348,355]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":651,"character":42}]},{"id":59,"name":"Replaceable","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Marks any part of a view to be replacable by the consumer."},"children":[{"id":60,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":61,"name":"new Replaceable","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{},"parameters":[{"id":62,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"target The factory generating the view."},"type":{"type":"intrinsic","name":"any"}},{"id":63,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"viewSlot The slot the view is injected in to.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Replaceable","id":59}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":111,"character":34}]},{"id":64,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":65,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the replaceable to the binding context and override context."},"parameters":[{"id":66,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":67,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":124,"character":6}]},{"id":68,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the replaceable."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":129,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[60]},{"title":"Methods","kind":2048,"children":[64,68]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":111,"character":32}]},{"id":295,"name":"SanitizeHTMLValueConverter","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Simple html sanitization converter to preserve whitelisted elements and attributes on a bound property containing html."},"children":[{"id":296,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instanse of the value converter."},"signatures":[{"id":297,"name":"new SanitizeHTMLValueConverter","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instanse of the value converter."},"parameters":[{"id":298,"name":"sanitizer","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The html sanitizer.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SanitizeHTMLValueConverter","id":295}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":557,"character":49}]},{"id":299,"name":"toView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":300,"name":"toView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided markup that flows to the view."},"parameters":[{"id":301,"name":"untrustedMarkup","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The untrusted markup to be sanitized.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":569,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[296]},{"title":"Methods","kind":2048,"children":[299]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":557,"character":47}]},{"id":50,"name":"SelfBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":51,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":52,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":53,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":54,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":104,"character":6}]},{"id":55,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":57,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":58,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":105,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[51,55]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":103,"character":40}]},{"id":254,"name":"SetRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a Set."},"children":[{"id":255,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":256,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a Set observer."},"parameters":[{"id":257,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":258,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":511,"character":23}]},{"id":259,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":260,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Set entries."},"parameters":[{"id":261,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":262,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The entries to process.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":517,"character":17}]},{"id":263,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":264,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle changes in a Set collection."},"parameters":[{"id":265,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeat instance."},"type":{"type":"intrinsic","name":"any"}},{"id":266,"name":"set","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The underlying Set collection."},"type":{"type":"intrinsic","name":"any"}},{"id":267,"name":"records","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The change records.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":525,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[255,259,263]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":505,"character":38}]},{"id":331,"name":"Show","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally show markup in the DOM based on the value.\n- different from \"if\" in that the markup is still added to the DOM, simply not shown."},"children":[{"id":332,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of Show."},"signatures":[{"id":333,"name":"new Show","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of Show."},"parameters":[{"id":334,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Target element to conditionally show."},"type":{"type":"intrinsic","name":"any"}},{"id":335,"name":"animator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The animator that conditionally adds or removes the aurelia-hide css class."},"type":{"type":"intrinsic","name":"any"}},{"id":336,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The DOM boundary. Used when the behavior appears within a component that utilizes the shadow DOM.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Show","id":331}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":616,"character":27}]},{"id":342,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":343,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the Show attribute."},"parameters":[{"id":344,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":640,"character":6}]},{"id":337,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":338,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the behavior is created."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":629,"character":9}]},{"id":339,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":340,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":341,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":635,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[332]},{"title":"Methods","kind":2048,"children":[342,337,339]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":616,"character":25}]},{"id":302,"name":"SignalBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":306,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":307,"name":"new SignalBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":308,"name":"bindingSignaler","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SignalBindingBehavior","id":302}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":575,"character":15}]},{"id":305,"name":"signals","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":575,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":309,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":310,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":311,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":312,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":577,"character":6}]},{"id":313,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":314,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":315,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":316,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":578,"character":8}]},{"id":303,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":304,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":574,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[306]},{"title":"Properties","kind":1024,"children":[305]},{"title":"Methods","kind":2048,"children":[309,313,303]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":573,"character":42}]},{"id":40,"name":"ThrottleBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":41,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":42,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":43,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":44,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":45,"name":"delay","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":100,"character":6}]},{"id":46,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":47,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":48,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"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-resources.d.ts","line":101,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[41,46]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":99,"character":44}]},{"id":164,"name":"TwoWayBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":165,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":166,"name":"new TwoWayBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"TwoWayBindingBehavior","id":164}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":314,"character":44}]}],"groups":[{"title":"Constructors","kind":512,"children":[165]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":314,"character":42}]},{"id":30,"name":"UpdateTriggerBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":31,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":32,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":33,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":34,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":35,"name":"events","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":96,"character":6}]},{"id":36,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":37,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":38,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":39,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":97,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[31,36]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":95,"character":49}]},{"id":16,"name":"With","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Creates a binding context for decandant elements to bind to."},"children":[{"id":17,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of With."},"signatures":[{"id":18,"name":"new With","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of With."},"parameters":[{"id":19,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The factory generating the view."},"type":{"type":"intrinsic","name":"any"}},{"id":20,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"With","id":16}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":68,"character":27}]},{"id":21,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":22,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the With with provided binding context and override context."},"parameters":[{"id":23,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":24,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":82,"character":6}]},{"id":28,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":29,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds With"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":93,"character":8}]},{"id":25,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":26,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":27,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":88,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[17]},{"title":"Methods","kind":2048,"children":[21,28,25]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":68,"character":25}]},{"id":2,"name":"RepeatStrategy","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"A strategy is for repeating a template over an iterable or iterable-like object."},"children":[{"id":12,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":13,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":14,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}},{"id":15,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":62,"character":23}]},{"id":3,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Repeat","id":358}},{"id":6,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":60,"character":17}]},{"id":7,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":9,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Repeat","id":358}},{"id":10,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}},{"id":11,"name":"changes","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":61,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[12,3,7]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":59,"character":39}]},{"id":465,"name":"aureliaHideClassName","kind":32,"kindString":"Variable","flags":{"isExported":true,"isConst":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":317,"character":41}],"type":{"type":"intrinsic","name":"any"}},{"id":471,"name":"lifecycleOptionalBehaviors","kind":32,"kindString":"Variable","flags":{"isExported":true,"isConst":true},"comment":{"shortText":"Behaviors that do not require the composition lifecycle callbacks when replacing\ntheir binding context."},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":329,"character":47}],"type":{"type":"intrinsic","name":"any"}},{"id":478,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":479,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":480,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":572,"character":33}]},{"id":434,"name":"createFullOverrideContext","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":435,"name":"createFullOverrideContext","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Creates a complete override context."},"parameters":[{"id":436,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":437,"name":"data","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The item's value."},"type":{"type":"intrinsic","name":"any"}},{"id":438,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The item's index."},"type":{"type":"intrinsic","name":"any"}},{"id":439,"name":"length","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The collections total length."},"type":{"type":"intrinsic","name":"any"}},{"id":440,"name":"key","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The key in a key/value pair.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":145,"character":49}]},{"id":475,"name":"getElementName","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":476,"name":"getElementName","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":477,"name":"address","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":571,"character":38}]},{"id":446,"name":"getItemsSourceExpression","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":447,"name":"getItemsSourceExpression","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a repeat instruction's source expression."},"parameters":[{"id":448,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":449,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":158,"character":48}]},{"id":459,"name":"indexOf","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":460,"name":"indexOf","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the index of the element in an array, optionally using a matcher function."},"parameters":[{"id":461,"name":"array","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":462,"name":"item","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":463,"name":"matcher","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":464,"name":"startIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":178,"character":31}]},{"id":468,"name":"injectAureliaHideStyleAtBoundary","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":469,"name":"injectAureliaHideStyleAtBoundary","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":470,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":319,"character":56}]},{"id":466,"name":"injectAureliaHideStyleAtHead","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":467,"name":"injectAureliaHideStyleAtHead","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":318,"character":52}]},{"id":453,"name":"isOneTime","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":454,"name":"isOneTime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns whether an expression has the OneTimeBindingBehavior applied."},"parameters":[{"id":455,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":168,"character":33}]},{"id":450,"name":"unwrapExpression","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":451,"name":"unwrapExpression","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unwraps an expression to expose the inner, pre-converted / behavior-free expression."},"parameters":[{"id":452,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":163,"character":40}]},{"id":456,"name":"updateOneTimeBinding","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":457,"name":"updateOneTimeBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Forces a binding instance to reevaluate."},"parameters":[{"id":458,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":173,"character":44}]},{"id":441,"name":"updateOverrideContext","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":442,"name":"updateOverrideContext","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Updates the override context."},"parameters":[{"id":443,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":444,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context's index."},"type":{"type":"intrinsic","name":"any"}},{"id":445,"name":"length","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The collection's length.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":153,"character":45}]},{"id":430,"name":"updateOverrideContexts","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":431,"name":"updateOverrideContexts","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Update the override context."},"parameters":[{"id":432,"name":"views","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":433,"name":"startIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"index in collection where to start updating.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":136,"character":46}]},{"id":472,"name":"viewsRequireLifecycle","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":473,"name":"viewsRequireLifecycle","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":474,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":330,"character":45}]}],"groups":[{"title":"Classes","kind":128,"children":[176,219,167,153,119,109,268,94,90,317,279,79,233,70,247,158,161,358,345,59,295,50,254,331,302,40,164,30,16]},{"title":"Interfaces","kind":256,"children":[2]},{"title":"Variables","kind":32,"children":[465,471]},{"title":"Functions","kind":64,"children":[478,434,475,446,459,468,466,453,450,456,441,430,472]}]} \ No newline at end of file +{"name":"aurelia-templating-resources","children":[{"id":186,"name":"AbstractRepeater","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"An abstract base class for elements and attributes that repeat\nviews."},"children":[{"id":187,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":188,"name":"new AbstractRepeater","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":189,"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"AbstractRepeater","id":186}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":344,"character":39}]},{"id":199,"name":"addView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":200,"name":"addView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a view to the repeater, binding the view to the\nprovided contexts."},"parameters":[{"id":201,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context to bind the new view to."},"type":{"type":"intrinsic","name":"any"}},{"id":202,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"A secondary binding context that can override the primary context.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":383,"character":9}]},{"id":203,"name":"insertView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":204,"name":"insertView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Inserts a view to the repeater at a specific index, binding the view to the\nprovided contexts."},"parameters":[{"id":205,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The index at which to create the new view at."},"type":{"type":"intrinsic","name":"any"}},{"id":206,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context to bind the new view to."},"type":{"type":"intrinsic","name":"any"}},{"id":207,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"A secondary binding context that can override the primary context.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":393,"character":12}]},{"id":197,"name":"matcher","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":198,"name":"matcher","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the matcher function to be used by the repeater, or null if strict matching is to be performed.","returns":"The requested matcher function.\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":374,"character":9}]},{"id":208,"name":"moveView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":209,"name":"moveView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Moves a view across the repeater."},"parameters":[{"id":210,"name":"sourceIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The index where the view should be placed at.\n"},"type":{"type":"intrinsic","name":"any"}},{"id":211,"name":"targetIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":401,"character":10}]},{"id":212,"name":"removeAllViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":213,"name":"removeAllViews","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes all views from the repeater.","returns":"\n"},"parameters":[{"id":214,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":215,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":409,"character":16}]},{"id":221,"name":"removeView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":222,"name":"removeView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes a view from the repeater at a specific index.","returns":"\n"},"parameters":[{"id":223,"name":"index","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The index of the view to be removed."},"type":{"type":"intrinsic","name":"number"}},{"id":224,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":225,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":429,"character":12}]},{"id":216,"name":"removeViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":217,"name":"removeViews","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Removes an array of Views from the repeater.","returns":"\n"},"parameters":[{"id":218,"name":"viewsToRemove","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The array of views to be removed."},"type":{"type":"reference","name":"Array","typeArguments":[{"type":"reference","name":"View"}]}},{"id":219,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the view be returned to the view cache?"},"type":{"type":"intrinsic","name":"boolean"}},{"id":220,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Should the removal animation be skipped?"},"type":{"type":"intrinsic","name":"boolean"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":419,"character":13}]},{"id":226,"name":"updateBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":227,"name":"updateBindings","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Forces a particular view to update it's bindings, called as part of\nan in-place processing of items for better performance"},"parameters":[{"id":228,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"the target view for bindings updates\n"},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":437,"character":16}]},{"id":194,"name":"view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":195,"name":"view","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns a single view from the repeater at the provided index.","returns":"The requested view.\n"},"parameters":[{"id":196,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The index of the requested view."},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":367,"character":6}]},{"id":190,"name":"viewCount","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":191,"name":"viewCount","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the number of views the repeater knows about.","returns":"the number of views.\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":352,"character":11}]},{"id":192,"name":"views","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":193,"name":"views","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns all of the repeaters views as an array.","returns":"The repeater's array of views;\n"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":359,"character":7}]}],"groups":[{"title":"Constructors","kind":512,"children":[187]},{"title":"Methods","kind":2048,"children":[199,203,197,208,212,221,216,226,194,190,192]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":344,"character":37}],"extendedBy":[{"type":"reference","name":"Repeat","id":372}]},{"id":229,"name":"ArrayRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over an array."},"children":[{"id":230,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":231,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets an observer for the specified collection."},"parameters":[{"id":232,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The observer locator instance."},"type":{"type":"intrinsic","name":"any"}},{"id":233,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":450,"character":23}]},{"id":234,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":235,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle the repeat's collection instance changing."},"parameters":[{"id":236,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeater instance."},"type":{"type":"intrinsic","name":"any"}},{"id":237,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new array instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":457,"character":17}]},{"id":238,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":239,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle the repeat's collection instance mutating."},"parameters":[{"id":240,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeat instance."},"type":{"type":"intrinsic","name":"any"}},{"id":241,"name":"array","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The modified array."},"type":{"type":"intrinsic","name":"any"}},{"id":242,"name":"splices","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Records of array changes.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":465,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[230,234,238]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":443,"character":40}]},{"id":177,"name":"AttrBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":178,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":179,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":180,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":181,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":329,"character":6}]},{"id":182,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":183,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":184,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":185,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":330,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[178,182]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":328,"character":40}]},{"id":157,"name":"BindingSignaler","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":158,"name":"signals","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":307,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":159,"name":"signal","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":160,"name":"signal","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":161,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"string"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":308,"character":8}]}],"groups":[{"title":"Properties","kind":1024,"children":[158]},{"title":"Methods","kind":2048,"children":[159]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":306,"character":36}]},{"id":121,"name":"Compose","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Used to compose a new view / view-model template or bind to an existing instance."},"children":[{"id":128,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Compose."},"signatures":[{"id":129,"name":"new Compose","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Compose."},"parameters":[{"id":130,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The Compose element."},"type":{"type":"intrinsic","name":"any"}},{"id":131,"name":"container","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The dependency injection container instance."},"type":{"type":"intrinsic","name":"any"}},{"id":132,"name":"compositionEngine","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"CompositionEngine instance to compose the element."},"type":{"type":"intrinsic","name":"any"}},{"id":133,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to."},"type":{"type":"intrinsic","name":"any"}},{"id":134,"name":"viewResources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Collection of resources used to compile the the view."},"type":{"type":"intrinsic","name":"any"}},{"id":135,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The TaskQueue instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Compose","id":121}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":252,"character":17}]},{"id":124,"name":"model","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":249,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":127,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":252,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":125,"name":"view","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":250,"character":6}],"type":{"type":"intrinsic","name":"any"}},{"id":126,"name":"viewModel","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":251,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":139,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":140,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Used to set the bindingContext."},"parameters":[{"id":141,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context in which the view model is executed in."},"type":{"type":"intrinsic","name":"any"}},{"id":142,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context in which the view model is executed in.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":278,"character":6}]},{"id":136,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":137,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the component has been created."},"parameters":[{"id":138,"name":"owningView","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The view that this component was created inside of.\n"},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":270,"character":9}]},{"id":145,"name":"modelChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":146,"name":"modelChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound model changes."},"parameters":[{"id":147,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":148,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":290,"character":14}]},{"id":143,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":144,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the Compose."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":283,"character":8}]},{"id":149,"name":"viewChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":150,"name":"viewChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound view changes."},"parameters":[{"id":151,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":152,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":297,"character":13}]},{"id":153,"name":"viewModelChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":154,"name":"viewModelChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound view model changes."},"parameters":[{"id":155,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value."},"type":{"type":"intrinsic","name":"any"}},{"id":156,"name":"oldValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The old value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":304,"character":18}]},{"id":122,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":123,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":248,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[128]},{"title":"Properties","kind":1024,"children":[124,127,125,126]},{"title":"Methods","kind":2048,"children":[139,136,145,143,149,153,122]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":247,"character":28}]},{"id":111,"name":"DebounceBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":112,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":113,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":114,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":115,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":116,"name":"delay","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":240,"character":6}]},{"id":117,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":118,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":119,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":120,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":241,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[112,117]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":239,"character":44}]},{"id":278,"name":"Else","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":279,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":280,"name":"new Else","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":281,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":282,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Else","id":278},"overwrites":{"type":"reference","name":"IfCore.__constructor","id":80}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":535,"character":42}],"overwrites":{"type":"reference","name":"IfCore.__constructor","id":80}},{"id":283,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":284,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":285,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":286,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"IfCore.bind","id":84}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":537,"character":6}],"overwrites":{"type":"reference","name":"IfCore.bind","id":84}},{"id":287,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":288,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}],"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"groups":[{"title":"Constructors","kind":512,"children":[279]},{"title":"Methods","kind":2048,"children":[283,287]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":535,"character":25}],"extendedTypes":[{"type":"reference","name":"IfCore","id":79}]},{"id":94,"name":"Focus","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"CustomAttribute that binds provided DOM element's focus attribute with a property on the viewmodel."},"children":[{"id":97,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Focus.","tags":[{"tag":"paramelement","text":"Target element on where attribute is placed on."}]},"signatures":[{"id":98,"name":"new Focus","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Focus.","tags":[{"tag":"paramelement","text":"Target element on where attribute is placed on."}]},"parameters":[{"id":99,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":100,"name":"taskQueue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The TaskQueue instance.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Focus","id":94}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":213,"character":23}]},{"id":104,"name":"attached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":105,"name":"attached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the attribute is attached to the DOM."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":231,"character":10}]},{"id":106,"name":"detached","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":107,"name":"detached","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the attribute is detached from the DOM."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":236,"character":10}]},{"id":108,"name":"handleEvent","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":109,"name":"handleEvent","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":110,"name":"e","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":237,"character":13}]},{"id":101,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":102,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":103,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":226,"character":14}]},{"id":95,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":96,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":213,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[97]},{"title":"Methods","kind":2048,"children":[104,106,108,101,95]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":212,"character":26}]},{"id":171,"name":"FromViewBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":172,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":173,"name":"new FromViewBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"FromViewBindingBehavior","id":171}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":319,"character":46}]}],"groups":[{"title":"Constructors","kind":512,"children":[172]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":319,"character":44}]},{"id":90,"name":"HTMLSanitizer","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Default Html Sanitizer to prevent script injection."},"children":[{"id":91,"name":"sanitize","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":92,"name":"sanitize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Sanitizes the provided input."},"parameters":[{"id":93,"name":"input","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The input to be sanitized.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":206,"character":10}]}],"groups":[{"title":"Methods","kind":2048,"children":[91]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":200,"character":34}]},{"id":327,"name":"Hide","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally show markup in the DOM based on the value.\n- different from \"if\" in that the markup is still added to the DOM, simply not shown."},"children":[{"id":330,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of Hide."},"signatures":[{"id":331,"name":"new Hide","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of Hide."},"parameters":[{"id":332,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Target element to conditionally hide."},"type":{"type":"intrinsic","name":"any"}},{"id":333,"name":"animator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The animator that conditionally adds or removes the aurelia-hide css class."},"type":{"type":"intrinsic","name":"any"}},{"id":334,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The DOM boundary. Used when the behavior appears within a component that utilizes the shadow DOM.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Hide","id":327}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":594,"character":23}]},{"id":340,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":341,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the Hide attribute."},"parameters":[{"id":342,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":618,"character":6}]},{"id":335,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":336,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the behavior is created."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":607,"character":9}]},{"id":337,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":338,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":339,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":613,"character":14}]},{"id":328,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":329,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":594,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[330]},{"title":"Methods","kind":2048,"children":[340,335,337,328]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":593,"character":25}]},{"id":289,"name":"If","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally include or not include template logic depending on returned result\n- value should be Boolean or will be treated as such (truthy / falsey)"},"children":[{"id":299,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":300,"name":"new If","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":301,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":302,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"If","id":289},"inheritedFrom":{"type":"reference","name":"IfCore.__constructor","id":80}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":29}],"inheritedFrom":{"type":"reference","name":"IfCore.__constructor","id":80}},{"id":290,"name":"condition","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":545,"character":11}],"type":{"type":"intrinsic","name":"any"}},{"id":291,"name":"swapOrder","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":546,"character":11}],"type":{"type":"union","types":[{"type":"stringLiteral","value":"before"},{"type":"stringLiteral","value":"with"},{"type":"stringLiteral","value":"after"}]}},{"id":292,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":293,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the if to the binding context and override context"},"parameters":[{"id":294,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context"},"type":{"type":"intrinsic","name":"any"}},{"id":295,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"IfCore.bind","id":84}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":553,"character":6}],"overwrites":{"type":"reference","name":"IfCore.bind","id":84}},{"id":296,"name":"conditionChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":297,"name":"conditionChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime value property changes."},"parameters":[{"id":298,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":559,"character":18}]},{"id":303,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":304,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}],"inheritedFrom":{"type":"reference","name":"IfCore.unbind","id":88}}],"groups":[{"title":"Constructors","kind":512,"children":[299]},{"title":"Properties","kind":1024,"children":[290,291]},{"title":"Methods","kind":2048,"children":[292,296,303]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":544,"character":23}],"extendedTypes":[{"type":"reference","name":"IfCore","id":79}]},{"id":79,"name":"IfCore","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"For internal use only. May change without warning."},"children":[{"id":80,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":81,"name":"new IfCore","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":82,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":83,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"IfCore","id":79}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":29}]},{"id":84,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":85,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":86,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":87,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":193,"character":6}]},{"id":88,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":89,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":194,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[80]},{"title":"Methods","kind":2048,"children":[84,88]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":191,"character":27}],"extendedBy":[{"type":"reference","name":"Else","id":278},{"type":"reference","name":"If","id":289}]},{"id":243,"name":"MapRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a Map."},"children":[{"id":244,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":245,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a Map observer."},"parameters":[{"id":246,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":247,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":477,"character":23}]},{"id":248,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":249,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Map entries."},"parameters":[{"id":250,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":251,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The entries to process.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":483,"character":17}]},{"id":252,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":253,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle changes in a Map collection."},"parameters":[{"id":254,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":255,"name":"map","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The underlying Map collection."},"type":{"type":"intrinsic","name":"any"}},{"id":256,"name":"records","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The change records.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":490,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[244,248,252]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":471,"character":38}]},{"id":70,"name":"NullRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over null or undefined (does nothing)"},"children":[{"id":75,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":76,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":77,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":78,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":185,"character":23}]},{"id":71,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":72,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":73,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":74,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":184,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[75,71]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":183,"character":39}]},{"id":257,"name":"NumberRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a number."},"children":[{"id":258,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":259,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Return the strategies collection observer. In this case none."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":501,"character":23}]},{"id":260,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":261,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Number."},"parameters":[{"id":262,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":263,"name":"value","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The Number of how many time to iterate.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":507,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[258,260]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":496,"character":41}]},{"id":162,"name":"OneTimeBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":163,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":164,"name":"new OneTimeBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"OneTimeBindingBehavior","id":162}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":310,"character":45}]}],"groups":[{"title":"Constructors","kind":512,"children":[163]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":310,"character":43}]},{"id":165,"name":"OneWayBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":166,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":167,"name":"new OneWayBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"OneWayBindingBehavior","id":165}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":313,"character":44}]}],"groups":[{"title":"Constructors","kind":512,"children":[166]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":313,"character":42}]},{"id":372,"name":"Repeat","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to iterate over iterable objects (Array, Map and Number) to genereate a template for each iteration."},"children":[{"id":377,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Repeat."},"signatures":[{"id":378,"name":"new Repeat","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Repeat."},"parameters":[{"id":379,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The factory generating the view"},"type":{"type":"intrinsic","name":"any"}},{"id":380,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The instructions for how the element should be enhanced."},"type":{"type":"intrinsic","name":"any"}},{"id":381,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to."},"type":{"type":"intrinsic","name":"any"}},{"id":382,"name":"viewResources","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Collection of resources used to compile the the views."},"type":{"type":"intrinsic","name":"any"}},{"id":383,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The observer locator instance."},"type":{"type":"intrinsic","name":"any"}},{"id":384,"name":"strategyLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Repeat","id":372},"overwrites":{"type":"reference","name":"AbstractRepeater.__constructor","id":187}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":688,"character":13}],"overwrites":{"type":"reference","name":"AbstractRepeater.__constructor","id":187}},{"id":373,"name":"items","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":685,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":375,"name":"key","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":687,"character":5}],"type":{"type":"intrinsic","name":"any"}},{"id":374,"name":"local","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":686,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":376,"name":"value","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":688,"character":7}],"type":{"type":"intrinsic","name":"any"}},{"id":414,"name":"addView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":415,"name":"addView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":416,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":417,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.addView","id":199}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":734,"character":9}],"overwrites":{"type":"reference","name":"AbstractRepeater.addView","id":199}},{"id":389,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":390,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the repeat to the binding context and override context."},"parameters":[{"id":391,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":392,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":707,"character":6}]},{"id":385,"name":"call","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":386,"name":"call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":387,"name":"context","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":388,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":700,"character":6}]},{"id":397,"name":"handleCollectionMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":398,"name":"handleCollectionMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the underlying collection changes."},"parameters":[{"id":399,"name":"collection","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":400,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":722,"character":25}]},{"id":401,"name":"handleInnerCollectionMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":402,"name":"handleInnerCollectionMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the underlying inner collection changes."},"parameters":[{"id":403,"name":"collection","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":404,"name":"changes","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":727,"character":30}]},{"id":418,"name":"insertView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":419,"name":"insertView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":420,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":421,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":422,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.insertView","id":203}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":735,"character":12}],"overwrites":{"type":"reference","name":"AbstractRepeater.insertView","id":203}},{"id":395,"name":"itemsChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":396,"name":"itemsChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the item property changes."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":717,"character":14}]},{"id":412,"name":"matcher","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":413,"name":"matcher","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.matcher","id":197}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":733,"character":9}],"overwrites":{"type":"reference","name":"AbstractRepeater.matcher","id":197}},{"id":423,"name":"moveView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":424,"name":"moveView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":425,"name":"sourceIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":426,"name":"targetIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.moveView","id":208}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":736,"character":10}],"overwrites":{"type":"reference","name":"AbstractRepeater.moveView","id":208}},{"id":427,"name":"removeAllViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":428,"name":"removeAllViews","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":429,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":430,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeAllViews","id":212}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":737,"character":16}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeAllViews","id":212}},{"id":436,"name":"removeView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":437,"name":"removeView","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":438,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":439,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":440,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeView","id":221}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":739,"character":12}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeView","id":221}},{"id":431,"name":"removeViews","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":432,"name":"removeViews","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":433,"name":"viewsToRemove","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":434,"name":"returnToCache","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":435,"name":"skipAnimation","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.removeViews","id":216}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":738,"character":13}],"overwrites":{"type":"reference","name":"AbstractRepeater.removeViews","id":216}},{"id":393,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":394,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the repeat"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":712,"character":8}]},{"id":441,"name":"updateBindings","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":442,"name":"updateBindings","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":443,"name":"view","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"View"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.updateBindings","id":226}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":740,"character":16}],"overwrites":{"type":"reference","name":"AbstractRepeater.updateBindings","id":226}},{"id":409,"name":"view","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":410,"name":"view","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":411,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.view","id":194}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":732,"character":6}],"overwrites":{"type":"reference","name":"AbstractRepeater.view","id":194}},{"id":405,"name":"viewCount","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":406,"name":"viewCount","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.viewCount","id":190}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":730,"character":11}],"overwrites":{"type":"reference","name":"AbstractRepeater.viewCount","id":190}},{"id":407,"name":"views","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":408,"name":"views","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"},"overwrites":{"type":"reference","name":"AbstractRepeater.views","id":192}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":731,"character":7}],"overwrites":{"type":"reference","name":"AbstractRepeater.views","id":192}}],"groups":[{"title":"Constructors","kind":512,"children":[377]},{"title":"Properties","kind":1024,"children":[373,375,374,376]},{"title":"Methods","kind":2048,"children":[414,389,385,397,401,418,395,412,423,427,436,431,393,441,409,405,407]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":684,"character":27}],"extendedTypes":[{"type":"reference","name":"AbstractRepeater","id":186}]},{"id":359,"name":"RepeatStrategyLocator","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Locates the best strategy to best repeating a template over different types of collections.\nCustom strategies can be plugged in as well."},"children":[{"id":360,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new RepeatStrategyLocator."},"signatures":[{"id":361,"name":"new RepeatStrategyLocator","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new RepeatStrategyLocator."},"type":{"type":"reference","name":"RepeatStrategyLocator","id":359}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":661,"character":44}]},{"id":362,"name":"addStrategy","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":363,"name":"addStrategy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a repeat strategy to be located when repeating a template over different collection types."},"parameters":[{"id":364,"name":"matcher","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reflection","declaration":{"id":365,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":366,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":367,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"boolean"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":672,"character":22}]}}},{"id":368,"name":"strategy","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A repeat strategy that can iterate a specific collection type.\n"},"type":{"type":"reference","name":"RepeatStrategy","id":2}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":672,"character":13}]},{"id":369,"name":"getStrategy","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":370,"name":"getStrategy","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets the best strategy to handle iteration."},"parameters":[{"id":371,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"RepeatStrategy","id":2}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":677,"character":13}]}],"groups":[{"title":"Constructors","kind":512,"children":[360]},{"title":"Methods","kind":2048,"children":[362,369]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":661,"character":42}]},{"id":59,"name":"Replaceable","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Marks any part of a view to be replacable by the consumer."},"children":[{"id":60,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{},"signatures":[{"id":61,"name":"new Replaceable","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{},"parameters":[{"id":62,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"target The factory generating the view."},"type":{"type":"intrinsic","name":"any"}},{"id":63,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"viewSlot The slot the view is injected in to.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Replaceable","id":59}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":111,"character":34}]},{"id":64,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":65,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the replaceable to the binding context and override context."},"parameters":[{"id":66,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":67,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":124,"character":6}]},{"id":68,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":69,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds the replaceable."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":129,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[60]},{"title":"Methods","kind":2048,"children":[64,68]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":111,"character":32}]},{"id":305,"name":"SanitizeHTMLValueConverter","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Simple html sanitization converter to preserve whitelisted elements and attributes on a bound property containing html."},"children":[{"id":306,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instanse of the value converter."},"signatures":[{"id":307,"name":"new SanitizeHTMLValueConverter","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instanse of the value converter."},"parameters":[{"id":308,"name":"sanitizer","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The html sanitizer.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SanitizeHTMLValueConverter","id":305}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":565,"character":49}]},{"id":309,"name":"toView","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":310,"name":"toView","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided markup that flows to the view."},"parameters":[{"id":311,"name":"untrustedMarkup","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The untrusted markup to be sanitized.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":577,"character":8}]}],"groups":[{"title":"Constructors","kind":512,"children":[306]},{"title":"Methods","kind":2048,"children":[309]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":565,"character":47}]},{"id":50,"name":"SelfBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":51,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":52,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":53,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":54,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":104,"character":6}]},{"id":55,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":57,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":58,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":105,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[51,55]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":103,"character":40}]},{"id":264,"name":"SetRepeatStrategy","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A strategy for repeating a template over a Set."},"children":[{"id":265,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":266,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a Set observer."},"parameters":[{"id":267,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":268,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The items to be observed.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":519,"character":23}]},{"id":269,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":270,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Process the provided Set entries."},"parameters":[{"id":271,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":272,"name":"items","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The entries to process.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":525,"character":17}]},{"id":273,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":274,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Handle changes in a Set collection."},"parameters":[{"id":275,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The repeat instance."},"type":{"type":"intrinsic","name":"any"}},{"id":276,"name":"set","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The underlying Set collection."},"type":{"type":"intrinsic","name":"any"}},{"id":277,"name":"records","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The change records.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":533,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[265,269,273]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":513,"character":38}]},{"id":343,"name":"Show","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Binding to conditionally show markup in the DOM based on the value.\n- different from \"if\" in that the markup is still added to the DOM, simply not shown."},"children":[{"id":346,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a new instance of Show."},"signatures":[{"id":347,"name":"new Show","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a new instance of Show."},"parameters":[{"id":348,"name":"element","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"Target element to conditionally show."},"type":{"type":"intrinsic","name":"any"}},{"id":349,"name":"animator","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The animator that conditionally adds or removes the aurelia-hide css class."},"type":{"type":"intrinsic","name":"any"}},{"id":350,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The DOM boundary. Used when the behavior appears within a component that utilizes the shadow DOM.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"Show","id":343}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":626,"character":23}]},{"id":356,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":357,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the Show attribute."},"parameters":[{"id":358,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":650,"character":6}]},{"id":351,"name":"created","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":352,"name":"created","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked when the behavior is created."},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":639,"character":9}]},{"id":353,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":354,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":355,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":645,"character":14}]},{"id":344,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":345,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":626,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[346]},{"title":"Methods","kind":2048,"children":[356,351,353,344]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":625,"character":25}]},{"id":312,"name":"SignalBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":316,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":317,"name":"new SignalBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"parameters":[{"id":318,"name":"bindingSignaler","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"SignalBindingBehavior","id":312}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":583,"character":15}]},{"id":315,"name":"signals","kind":1024,"kindString":"Property","flags":{"isExported":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":583,"character":9}],"type":{"type":"intrinsic","name":"any"}},{"id":319,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":320,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":321,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":322,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":585,"character":6}]},{"id":323,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":324,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":325,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":326,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":586,"character":8}]},{"id":313,"name":"inject","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":314,"name":"inject","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":582,"character":15}]}],"groups":[{"title":"Constructors","kind":512,"children":[316]},{"title":"Properties","kind":1024,"children":[315]},{"title":"Methods","kind":2048,"children":[319,323,313]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":581,"character":42}]},{"id":40,"name":"ThrottleBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":41,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":42,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":43,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":44,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":45,"name":"delay","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":100,"character":6}]},{"id":46,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":47,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":48,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"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-resources.d.ts","line":101,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[41,46]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":99,"character":44}]},{"id":168,"name":"ToViewBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":169,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":170,"name":"new ToViewBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"ToViewBindingBehavior","id":168}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":316,"character":44}]}],"groups":[{"title":"Constructors","kind":512,"children":[169]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":316,"character":42}]},{"id":174,"name":"TwoWayBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":175,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"signatures":[{"id":176,"name":"new TwoWayBindingBehavior","kind":16384,"kindString":"Constructor signature","flags":{},"type":{"type":"reference","name":"TwoWayBindingBehavior","id":174}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":322,"character":44}]}],"groups":[{"title":"Constructors","kind":512,"children":[175]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":322,"character":42}]},{"id":30,"name":"UpdateTriggerBindingBehavior","kind":128,"kindString":"Class","flags":{"isExported":true},"children":[{"id":31,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":32,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":33,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":34,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":35,"name":"events","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"type":{"type":"array","elementType":{"type":"intrinsic","name":"any"}}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":96,"character":6}]},{"id":36,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":37,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":38,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":39,"name":"source","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":97,"character":8}]}],"groups":[{"title":"Methods","kind":2048,"children":[31,36]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":95,"character":49}]},{"id":16,"name":"With","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Creates a binding context for decandant elements to bind to."},"children":[{"id":17,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of With."},"signatures":[{"id":18,"name":"new With","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of With."},"parameters":[{"id":19,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The factory generating the view."},"type":{"type":"intrinsic","name":"any"}},{"id":20,"name":"viewSlot","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The slot the view is injected in to.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"reference","name":"With","id":16}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":68,"character":27}]},{"id":21,"name":"bind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":22,"name":"bind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Binds the With with provided binding context and override context."},"parameters":[{"id":23,"name":"bindingContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The binding context."},"type":{"type":"intrinsic","name":"any"}},{"id":24,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An override context for binding.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":82,"character":6}]},{"id":28,"name":"unbind","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":29,"name":"unbind","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unbinds With"},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":93,"character":8}]},{"id":25,"name":"valueChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":26,"name":"valueChanged","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Invoked everytime the bound value changes."},"parameters":[{"id":27,"name":"newValue","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The new value.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":88,"character":14}]}],"groups":[{"title":"Constructors","kind":512,"children":[17]},{"title":"Methods","kind":2048,"children":[21,28,25]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":68,"character":25}]},{"id":2,"name":"RepeatStrategy","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"A strategy is for repeating a template over an iterable or iterable-like object."},"children":[{"id":12,"name":"getCollectionObserver","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":13,"name":"getCollectionObserver","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":14,"name":"observerLocator","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}},{"id":15,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":62,"character":23}]},{"id":3,"name":"instanceChanged","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"instanceChanged","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":5,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Repeat","id":372}},{"id":6,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":60,"character":17}]},{"id":7,"name":"instanceMutated","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"instanceMutated","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":9,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Repeat","id":372}},{"id":10,"name":"items","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}},{"id":11,"name":"changes","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"void"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":61,"character":17}]}],"groups":[{"title":"Methods","kind":2048,"children":[12,3,7]}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":59,"character":39}]},{"id":479,"name":"aureliaHideClassName","kind":32,"kindString":"Variable","flags":{"isExported":true,"isConst":true},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":325,"character":41}],"type":{"type":"intrinsic","name":"any"}},{"id":485,"name":"lifecycleOptionalBehaviors","kind":32,"kindString":"Variable","flags":{"isExported":true,"isConst":true},"comment":{"shortText":"Behaviors that do not require the composition lifecycle callbacks when replacing\ntheir binding context."},"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":337,"character":47}],"type":{"type":"intrinsic","name":"any"}},{"id":492,"name":"configure","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":493,"name":"configure","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":494,"name":"config","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":580,"character":33}]},{"id":448,"name":"createFullOverrideContext","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":449,"name":"createFullOverrideContext","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Creates a complete override context."},"parameters":[{"id":450,"name":"repeat","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":451,"name":"data","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The item's value."},"type":{"type":"intrinsic","name":"any"}},{"id":452,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The item's index."},"type":{"type":"intrinsic","name":"any"}},{"id":453,"name":"length","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The collections total length."},"type":{"type":"intrinsic","name":"any"}},{"id":454,"name":"key","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The key in a key/value pair.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":145,"character":49}]},{"id":489,"name":"getElementName","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":490,"name":"getElementName","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":491,"name":"address","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":579,"character":38}]},{"id":460,"name":"getItemsSourceExpression","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":461,"name":"getItemsSourceExpression","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets a repeat instruction's source expression."},"parameters":[{"id":462,"name":"instruction","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":463,"name":"attrName","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":158,"character":48}]},{"id":473,"name":"indexOf","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":474,"name":"indexOf","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns the index of the element in an array, optionally using a matcher function."},"parameters":[{"id":475,"name":"array","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":476,"name":"item","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":477,"name":"matcher","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":478,"name":"startIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":178,"character":31}]},{"id":482,"name":"injectAureliaHideStyleAtBoundary","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":483,"name":"injectAureliaHideStyleAtBoundary","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":484,"name":"domBoundary","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":327,"character":56}]},{"id":480,"name":"injectAureliaHideStyleAtHead","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":481,"name":"injectAureliaHideStyleAtHead","kind":4096,"kindString":"Call signature","flags":{},"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":326,"character":52}]},{"id":467,"name":"isOneTime","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":468,"name":"isOneTime","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Returns whether an expression has the OneTimeBindingBehavior applied."},"parameters":[{"id":469,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":168,"character":33}]},{"id":464,"name":"unwrapExpression","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":465,"name":"unwrapExpression","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Unwraps an expression to expose the inner, pre-converted / behavior-free expression."},"parameters":[{"id":466,"name":"expression","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":163,"character":40}]},{"id":470,"name":"updateOneTimeBinding","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":471,"name":"updateOneTimeBinding","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Forces a binding instance to reevaluate."},"parameters":[{"id":472,"name":"binding","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":173,"character":44}]},{"id":455,"name":"updateOverrideContext","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":456,"name":"updateOverrideContext","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Updates the override context."},"parameters":[{"id":457,"name":"overrideContext","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":458,"name":"index","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The context's index."},"type":{"type":"intrinsic","name":"any"}},{"id":459,"name":"length","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The collection's length.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":153,"character":45}]},{"id":444,"name":"updateOverrideContexts","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":445,"name":"updateOverrideContexts","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Update the override context."},"parameters":[{"id":446,"name":"views","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}},{"id":447,"name":"startIndex","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"index in collection where to start updating.\n"},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":136,"character":46}]},{"id":486,"name":"viewsRequireLifecycle","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":487,"name":"viewsRequireLifecycle","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":488,"name":"viewFactory","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"any"}}],"type":{"type":"intrinsic","name":"any"}}],"sources":[{"fileName":"aurelia-templating-resources.d.ts","line":338,"character":45}]}],"groups":[{"title":"Classes","kind":128,"children":[186,229,177,157,121,111,278,94,171,90,327,289,79,243,70,257,162,165,372,359,59,305,50,264,343,312,40,168,174,30,16]},{"title":"Interfaces","kind":256,"children":[2]},{"title":"Variables","kind":32,"children":[479,485]},{"title":"Functions","kind":64,"children":[492,448,489,460,473,482,480,467,464,470,455,444,486]}]} \ No newline at end of file diff --git a/package.json b/package.json index 3eb3912..20da99d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-templating-resources", - "version": "1.6.1", + "version": "1.7.0", "description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.", "keywords": [ "aurelia", @@ -36,7 +36,7 @@ "aurelia-pal": "^1.3.0", "aurelia-path": "^1.0.0", "aurelia-task-queue": "^1.0.0", - "aurelia-templating": "^1.5.0" + "aurelia-templating": "^1.8.1" }, "dependencies": { "aurelia-binding": "^2.0.0", @@ -47,7 +47,7 @@ "aurelia-pal": "^1.3.0", "aurelia-path": "^1.0.0", "aurelia-task-queue": "^1.0.0", - "aurelia-templating": "^1.5.0" + "aurelia-templating": "^1.8.1" }, "devDependencies": { "aurelia-bootstrapper": "^1.0.0", @@ -75,7 +75,7 @@ "aurelia-pal": "^1.3.0", "aurelia-path": "^1.0.0", "aurelia-task-queue": "^1.0.0", - "aurelia-templating": "^1.5.0" + "aurelia-templating": "^1.8.1" }, "devDependencies": { "aurelia-tools": "^0.2.4",