Skip to content

Commit

Permalink
chore(all): prepare release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Oct 5, 2016
1 parent 7a9caa1 commit ed58f68
Show file tree
Hide file tree
Showing 17 changed files with 185 additions and 32 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating-resources",
"version": "1.0.0",
"version": "1.1.0",
"description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.",
"keywords": [
"aurelia",
Expand All @@ -19,7 +19,7 @@
"url": "http://github.com/aurelia/templating-resources"
},
"dependencies": {
"aurelia-binding": "^1.0.0",
"aurelia-binding": "^1.0.7",
"aurelia-dependency-injection": "^1.0.0",
"aurelia-loader": "^1.0.0",
"aurelia-logging": "^1.0.0",
Expand Down
24 changes: 24 additions & 0 deletions dist/amd/attr-binding-behavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
define(['exports', 'aurelia-binding'], function (exports, _aureliaBinding) {
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AttrBindingBehavior = undefined;



var AttrBindingBehavior = exports.AttrBindingBehavior = function () {
function AttrBindingBehavior() {

}

AttrBindingBehavior.prototype.bind = function bind(binding, source) {
binding.targetObserver = new _aureliaBinding.DataAttributeObserver(binding.target, binding.targetProperty);
};

AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {};

return AttrBindingBehavior;
}();
});
7 changes: 4 additions & 3 deletions dist/amd/aurelia-templating-resources.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
define(['exports', './compose', './if', './with', './repeat', './show', './hide', './sanitize-html', './replaceable', './focus', 'aurelia-templating', './css-resource', './html-sanitizer', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-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, _with, _repeat, _show, _hide, _sanitizeHtml, _replaceable, _focus, _aureliaTemplating, _cssResource, _htmlSanitizer, _bindingModeBehaviors, _throttleBindingBehavior, _debounceBindingBehavior, _signalBindingBehavior, _bindingSignaler, _updateTriggerBindingBehavior, _abstractRepeater, _repeatStrategyLocator, _htmlResourcePlugin, _nullRepeatStrategy, _arrayRepeatStrategy, _mapRepeatStrategy, _setRepeatStrategy, _numberRepeatStrategy, _repeatUtilities, _analyzeViewFactory, _aureliaHideStyle) {
define(['exports', './compose', './if', './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', './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, _with, _repeat, _show, _hide, _sanitizeHtml, _replaceable, _focus, _aureliaTemplating, _cssResource, _htmlSanitizer, _attrBindingBehavior, _bindingModeBehaviors, _throttleBindingBehavior, _debounceBindingBehavior, _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.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = 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.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.If = exports.Compose = undefined;


function configure(config) {
(0, _aureliaHideStyle.injectAureliaHideStyleAtHead)();

config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior');
config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior', './attr-binding-behavior');

(0, _htmlResourcePlugin.configure)(config);

Expand All @@ -35,6 +35,7 @@ define(['exports', './compose', './if', './with', './repeat', './show', './hide'
exports.Replaceable = _replaceable.Replaceable;
exports.Focus = _focus.Focus;
exports.configure = configure;
exports.AttrBindingBehavior = _attrBindingBehavior.AttrBindingBehavior;
exports.OneTimeBindingBehavior = _bindingModeBehaviors.OneTimeBindingBehavior;
exports.OneWayBindingBehavior = _bindingModeBehaviors.OneWayBindingBehavior;
exports.TwoWayBindingBehavior = _bindingModeBehaviors.TwoWayBindingBehavior;
Expand Down
5 changes: 5 additions & 0 deletions dist/aurelia-templating-resources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
BindingBehavior,
ValueConverter,
sourceContext,
DataAttributeObserver,
mergeSplice,
valueConverter,
ObserverLocator
Expand Down Expand Up @@ -334,6 +335,10 @@ export declare class TwoWayBindingBehavior {
export declare const aureliaHideClassName: any;
export declare function injectAureliaHideStyleAtHead(): any;
export declare function injectAureliaHideStyleAtBoundary(domBoundary?: any): any;
export declare class AttrBindingBehavior {
bind(binding?: any, source?: any): any;
unbind(binding?: any, source?: any): any;
}

/**
* Behaviors that do not require the composition lifecycle callbacks when replacing
Expand Down
10 changes: 9 additions & 1 deletion dist/aurelia-templating-resources.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {inject,Container,Optional} from 'aurelia-dependency-injection';
import {BoundViewFactory,ViewSlot,customAttribute,templateController,useView,customElement,bindable,ViewResources,resource,ViewCompileInstruction,CompositionEngine,noView,View,ViewEngine,Animator,TargetInstruction} from 'aurelia-templating';
import {createOverrideContext,bindingMode,EventManager,BindingBehavior,ValueConverter,sourceContext,mergeSplice,valueConverter,ObserverLocator} from 'aurelia-binding';
import {createOverrideContext,bindingMode,EventManager,BindingBehavior,ValueConverter,sourceContext,DataAttributeObserver,mergeSplice,valueConverter,ObserverLocator} from 'aurelia-binding';
import {TaskQueue} from 'aurelia-task-queue';
import {DOM,FEATURE} from 'aurelia-pal';
import {Loader} from 'aurelia-loader';
Expand Down Expand Up @@ -923,6 +923,14 @@ export function injectAureliaHideStyleAtBoundary(domBoundary) {
}
}

export class AttrBindingBehavior {
bind(binding, source) {
binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty);
}

unbind(binding, source) {}
}

/**
* Behaviors that do not require the composition lifecycle callbacks when replacing
* their binding context.
Expand Down
24 changes: 24 additions & 0 deletions dist/commonjs/attr-binding-behavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AttrBindingBehavior = undefined;

var _aureliaBinding = require('aurelia-binding');



var AttrBindingBehavior = exports.AttrBindingBehavior = function () {
function AttrBindingBehavior() {

}

AttrBindingBehavior.prototype.bind = function bind(binding, source) {
binding.targetObserver = new _aureliaBinding.DataAttributeObserver(binding.target, binding.targetProperty);
};

AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {};

return AttrBindingBehavior;
}();
7 changes: 5 additions & 2 deletions dist/commonjs/aurelia-templating-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +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.DebounceBindingBehavior = exports.ThrottleBindingBehavior = exports.TwoWayBindingBehavior = exports.OneWayBindingBehavior = exports.OneTimeBindingBehavior = exports.configure = exports.Focus = exports.Replaceable = exports.SanitizeHTMLValueConverter = exports.HTMLSanitizer = exports.Hide = exports.Show = exports.Repeat = exports.With = 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.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.If = exports.Compose = undefined;

var _compose = require('./compose');

Expand All @@ -29,6 +29,8 @@ var _cssResource = require('./css-resource');

var _htmlSanitizer = require('./html-sanitizer');

var _attrBindingBehavior = require('./attr-binding-behavior');

var _bindingModeBehaviors = require('./binding-mode-behaviors');

var _throttleBindingBehavior = require('./throttle-binding-behavior');
Expand Down Expand Up @@ -66,7 +68,7 @@ var _aureliaHideStyle = require('./aurelia-hide-style');
function configure(config) {
(0, _aureliaHideStyle.injectAureliaHideStyleAtHead)();

config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior');
config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior', './attr-binding-behavior');

(0, _htmlResourcePlugin.configure)(config);

Expand All @@ -91,6 +93,7 @@ exports.SanitizeHTMLValueConverter = _sanitizeHtml.SanitizeHTMLValueConverter;
exports.Replaceable = _replaceable.Replaceable;
exports.Focus = _focus.Focus;
exports.configure = configure;
exports.AttrBindingBehavior = _attrBindingBehavior.AttrBindingBehavior;
exports.OneTimeBindingBehavior = _bindingModeBehaviors.OneTimeBindingBehavior;
exports.OneWayBindingBehavior = _bindingModeBehaviors.OneWayBindingBehavior;
exports.TwoWayBindingBehavior = _bindingModeBehaviors.TwoWayBindingBehavior;
Expand Down
9 changes: 9 additions & 0 deletions dist/es2015/attr-binding-behavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { DataAttributeObserver } from 'aurelia-binding';

export let AttrBindingBehavior = class AttrBindingBehavior {
bind(binding, source) {
binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty);
}

unbind(binding, source) {}
};
5 changes: 3 additions & 2 deletions dist/es2015/aurelia-templating-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Focus } from './focus';
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 { ThrottleBindingBehavior } from './throttle-binding-behavior';
import { DebounceBindingBehavior } from './debounce-binding-behavior';
Expand All @@ -31,7 +32,7 @@ import { injectAureliaHideStyleAtHead } from './aurelia-hide-style';
function configure(config) {
injectAureliaHideStyleAtHead();

config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior');
config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior', './attr-binding-behavior');

configureHtmlResourcePlugin(config);

Expand All @@ -43,4 +44,4 @@ function configure(config) {
});
}

export { Compose, If, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle };
export { Compose, If, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle };
17 changes: 17 additions & 0 deletions dist/native-modules/attr-binding-behavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


import { DataAttributeObserver } from 'aurelia-binding';

export var AttrBindingBehavior = function () {
function AttrBindingBehavior() {

}

AttrBindingBehavior.prototype.bind = function bind(binding, source) {
binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty);
};

AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {};

return AttrBindingBehavior;
}();
5 changes: 3 additions & 2 deletions dist/native-modules/aurelia-templating-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Focus } from './focus';
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 { ThrottleBindingBehavior } from './throttle-binding-behavior';
import { DebounceBindingBehavior } from './debounce-binding-behavior';
Expand All @@ -31,7 +32,7 @@ import { injectAureliaHideStyleAtHead } from './aurelia-hide-style';
function configure(config) {
injectAureliaHideStyleAtHead();

config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior');
config.globalResources('./compose', './if', './with', './repeat', './show', './hide', './replaceable', './sanitize-html', './focus', './binding-mode-behaviors', './throttle-binding-behavior', './debounce-binding-behavior', './signal-binding-behavior', './update-trigger-binding-behavior', './attr-binding-behavior');

configureHtmlResourcePlugin(config);

Expand All @@ -45,4 +46,4 @@ function configure(config) {
});
}

export { Compose, If, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle };
export { Compose, If, With, Repeat, Show, Hide, HTMLSanitizer, SanitizeHTMLValueConverter, Replaceable, Focus, configure, AttrBindingBehavior, OneTimeBindingBehavior, OneWayBindingBehavior, TwoWayBindingBehavior, ThrottleBindingBehavior, DebounceBindingBehavior, SignalBindingBehavior, BindingSignaler, UpdateTriggerBindingBehavior, AbstractRepeater, RepeatStrategyLocator, NullRepeatStrategy, ArrayRepeatStrategy, MapRepeatStrategy, SetRepeatStrategy, NumberRepeatStrategy, createFullOverrideContext, updateOverrideContext, getItemsSourceExpression, isOneTime, updateOneTimeBinding, unwrapExpression, viewsRequireLifecycle };
32 changes: 32 additions & 0 deletions dist/system/attr-binding-behavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use strict';

System.register(['aurelia-binding'], function (_export, _context) {
"use strict";

var DataAttributeObserver, AttrBindingBehavior;



return {
setters: [function (_aureliaBinding) {
DataAttributeObserver = _aureliaBinding.DataAttributeObserver;
}],
execute: function () {
_export('AttrBindingBehavior', AttrBindingBehavior = function () {
function AttrBindingBehavior() {

}

AttrBindingBehavior.prototype.bind = function bind(binding, source) {
binding.targetObserver = new DataAttributeObserver(binding.target, binding.targetProperty);
};

AttrBindingBehavior.prototype.unbind = function unbind(binding, source) {};

return AttrBindingBehavior;
}());

_export('AttrBindingBehavior', AttrBindingBehavior);
}
};
});
Loading

0 comments on commit ed58f68

Please sign in to comment.