Skip to content

Commit

Permalink
chore(all): prepare release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 9, 2015
1 parent 2acc4e4 commit 74cc2be
Show file tree
Hide file tree
Showing 81 changed files with 1,534 additions and 685 deletions.
16 changes: 8 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating",
"version": "0.11.2",
"version": "0.12.0",
"description": "An extensible HTML templating engine supporting databinding, custom elements, attached behaviors and more.",
"keywords": [
"aurelia",
Expand All @@ -19,14 +19,14 @@
"url": "http://github.com/aurelia/templating"
},
"dependencies": {
"aurelia-binding": "^0.6.1",
"aurelia-dependency-injection": "^0.7.1",
"aurelia-binding": "^0.7.0",
"aurelia-dependency-injection": "^0.8.1",
"aurelia-html-template-element": "^0.2.0",
"aurelia-loader": "^0.6.0",
"aurelia-logging": "^0.4.0",
"aurelia-metadata": "^0.5.0",
"aurelia-path": "^0.6.1",
"aurelia-task-queue": "^0.4.0",
"aurelia-loader": "^0.7.0",
"aurelia-logging": "^0.5.0",
"aurelia-metadata": "^0.6.0",
"aurelia-path": "^0.7.0",
"aurelia-task-queue": "^0.5.0",
"core-js": "zloirock/core-js"
}
}
49 changes: 25 additions & 24 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,42 @@ System.config({

System.config({
"map": {
"aurelia-binding": "github:aurelia/binding@0.6.1",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.1",
"aurelia-binding": "github:aurelia/binding@0.7.0",
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.8.1",
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-loader": "github:aurelia/loader@0.6.0",
"aurelia-logging": "github:aurelia/logging@0.4.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"aurelia-path": "github:aurelia/path@0.6.1",
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
"aurelia-loader": "github:aurelia/loader@0.7.0",
"aurelia-logging": "github:aurelia/logging@0.5.0",
"aurelia-metadata": "github:aurelia/metadata@0.6.0",
"aurelia-path": "github:aurelia/path@0.7.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.5.0",
"babel": "npm:[email protected]",
"babel-runtime": "npm:[email protected]",
"core-js": "npm:[email protected].6",
"github:aurelia/binding@0.6.1": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.7.1",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.4.0",
"core-js": "npm:[email protected].6"
"core-js": "npm:[email protected].14",
"github:aurelia/binding@0.7.0": {
"aurelia-dependency-injection": "github:aurelia/dependency-injection@0.8.1",
"aurelia-metadata": "github:aurelia/metadata@0.6.0",
"aurelia-task-queue": "github:aurelia/task-queue@0.5.0",
"core-js": "npm:[email protected].14"
},
"github:aurelia/dependency-injection@0.7.1": {
"aurelia-logging": "github:aurelia/logging@0.4.0",
"aurelia-metadata": "github:aurelia/metadata@0.5.0",
"core-js": "npm:[email protected].6"
"github:aurelia/dependency-injection@0.8.1": {
"aurelia-logging": "github:aurelia/logging@0.5.0",
"aurelia-metadata": "github:aurelia/metadata@0.6.0",
"core-js": "npm:[email protected].14"
},
"github:aurelia/loader@0.6.0": {
"github:aurelia/loader@0.7.0": {
"aurelia-html-template-element": "github:aurelia/[email protected]",
"aurelia-path": "github:aurelia/path@0.6.1",
"core-js": "npm:[email protected].6",
"webcomponentsjs": "github:webcomponents/[email protected].1"
"aurelia-path": "github:aurelia/path@0.7.0",
"core-js": "npm:[email protected].14",
"webcomponentsjs": "github:webcomponents/[email protected].3"
},
"github:aurelia/metadata@0.5.0": {
"core-js": "npm:[email protected].6"
"github:aurelia/metadata@0.6.0": {
"core-js": "npm:[email protected].14"
},
"github:jspm/[email protected]": {
"process": "npm:[email protected]"
},
"npm:[email protected]": {
"npm:[email protected]": {
"fs": "github:jspm/[email protected]",
"process": "github:jspm/[email protected]"
}
}
Expand Down
27 changes: 27 additions & 0 deletions dist/amd/animation-event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
define(['exports'], function (exports) {
'use strict';

exports.__esModule = true;
var animationEvent = {
enterBegin: 'animation:enter:begin',
enterActive: 'animation:enter:active',
enterDone: 'animation:enter:done',
enterTimeout: 'animation:enter:timeout',

leaveBegin: 'animation:leave:begin',
leaveActive: 'animation:leave:active',
leaveDone: 'animation:leave:done',
leaveTimeout: 'animation:leave:timeout',

staggerNext: 'animation:stagger:next',

removeClassBegin: 'animation:remove-class:begin',
removeClassDone: 'animation:remove-class:done',
removeClassTimeout: 'animation:remove-class:timeout',

addClassBegin: 'animation:add-class:begin',
addClassDone: 'animation:add-class:done',
addClassTimeout: 'animation:add-class:timeout'
};
exports.animationEvent = animationEvent;
});
14 changes: 12 additions & 2 deletions dist/amd/animator.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
define(["exports"], function (exports) {
"use strict";

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var Animator = (function () {
function Animator() {
_classCallCheck(this, Animator);
Expand Down Expand Up @@ -34,6 +34,16 @@ define(["exports"], function (exports) {
return Promise.resolve(false);
};

Animator.prototype.animate = function animate(element, className, options) {
return Promise.resolve(false);
};

Animator.prototype.runSequence = function runSequence(sequence) {};

Animator.prototype.registerEffect = function registerEffect(effectName, properties) {};

Animator.prototype.unregisterEffect = function unregisterEffect(effectName) {};

return Animator;
})();

Expand Down
6 changes: 3 additions & 3 deletions dist/amd/behavior-instance.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
define(["exports"], function (exports) {
"use strict";

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var BehaviorInstance = (function () {
function BehaviorInstance(behavior, executionContext, instruction) {
_classCallCheck(this, BehaviorInstance);
Expand All @@ -13,7 +13,7 @@ define(["exports"], function (exports) {
this.executionContext = executionContext;
this.isAttached = false;

var observerLookup = behavior.observerLocator.getObserversLookup(executionContext),
var observerLookup = behavior.observerLocator.getOrCreateObserversLookup(executionContext),
handlesBind = behavior.handlesBind,
attributes = instruction.attributes,
boundProperties = this.boundProperties = [],
Expand Down
18 changes: 11 additions & 7 deletions dist/amd/bindable-property.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _coreJs, _util, _aureliaBinding) {
'use strict';

var _interopRequire = function (obj) { return obj && obj.__esModule ? obj['default'] : obj; };
exports.__esModule = true;

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var _core = _interopRequire(_coreJs);
var _core = _interopRequireDefault(_coreJs);

function getObserver(behavior, instance, name) {
var lookup = instance.__observers__;

if (lookup === undefined) {
lookup = behavior.observerLocator.getObserversLookup(instance);
lookup = behavior.observerLocator.getOrCreateObserversLookup(instance);
behavior.ensurePropertiesDefined(instance, lookup);
}

Expand All @@ -30,7 +30,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
Object.assign(this, nameOrConfig);
}

this.attribute = this.attribute || _util.hyphenate(this.name);
this.attribute = this.attribute || (0, _util.hyphenate)(this.name);
this.defaultBindingMode = this.defaultBindingMode || _aureliaBinding.bindingMode.oneWay;
this.changeHandler = this.changeHandler || null;
this.owner = null;
Expand Down Expand Up @@ -73,6 +73,10 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
getObserver(behavior, this, name).setValue(value);
};

descriptor.get.getObserver = function (obj) {
return getObserver(behavior, obj, name);
};

return descriptor;
};

Expand Down Expand Up @@ -165,7 +169,7 @@ define(['exports', 'core-js', './util', 'aurelia-binding'], function (exports, _
};
} else if ('dynamicPropertyChanged' in executionContext) {
selfSubscriber = function (newValue, oldValue) {
return executionContext.dynamicPropertyChanged(name, newValue, oldValue);
return executionContext['dynamicPropertyChanged'](name, newValue, oldValue);
};
}

Expand Down
4 changes: 2 additions & 2 deletions dist/amd/binding-language.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
define(['exports'], function (exports) {
'use strict';

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var BindingLanguage = (function () {
function BindingLanguage() {
_classCallCheck(this, BindingLanguage);
Expand Down
5 changes: 3 additions & 2 deletions dist/amd/children.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
define(["exports"], function (exports) {
"use strict";

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

var noMutations = [];

var ChildObserver = (function () {
Expand Down
14 changes: 10 additions & 4 deletions dist/amd/composition-engine.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
define(['exports', 'aurelia-metadata', './view-strategy', './view-engine', './html-behavior'], function (exports, _aureliaMetadata, _viewStrategy, _viewEngine, _htmlBehavior) {
'use strict';

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };

exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var CompositionEngine = (function () {
function CompositionEngine(viewEngine) {
_classCallCheck(this, CompositionEngine);
Expand Down Expand Up @@ -68,8 +68,8 @@ define(['exports', 'aurelia-metadata', './view-strategy', './view-engine', './ht
} else {
metadata = new _htmlBehavior.HtmlBehaviorResource();
metadata.elementName = 'dynamic-element';
metadata.analyze(instruction.container || childContainer, viewModel.constructor);
doneLoading = metadata.load(childContainer, viewModel.constructor, instruction.view, true).then(function (viewFactory) {
metadata.analyze(instruction.container || childContainer, viewModel.constructor);
return viewFactory;
});
}
Expand All @@ -78,7 +78,8 @@ define(['exports', 'aurelia-metadata', './view-strategy', './view-engine', './ht
return metadata.create(childContainer, {
executionContext: viewModel,
viewFactory: viewFactory,
suppressBind: true
suppressBind: true,
host: instruction.host
});
});
});
Expand All @@ -91,6 +92,11 @@ define(['exports', 'aurelia-metadata', './view-strategy', './view-engine', './ht

return this.viewEngine.importViewModelResource(instruction.viewModel).then(function (viewModelResource) {
childContainer.autoRegister(viewModelResource.value);

if (instruction.host) {
childContainer.registerInstance(Element, instruction.host);
}

instruction.viewModel = childContainer.viewModel = childContainer.get(viewModelResource.value);
instruction.viewModelResource = viewModelResource;
return instruction;
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/content-selector.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
define(['exports', 'core-js'], function (exports, _coreJs) {
'use strict';

var _interopRequire = function (obj) { return obj && obj.__esModule ? obj['default'] : obj; };
exports.__esModule = true;

var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

var _core = _interopRequire(_coreJs);
var _core = _interopRequireDefault(_coreJs);

if (Element && !Element.prototype.matches) {
var proto = Element.prototype;
Expand Down
29 changes: 25 additions & 4 deletions dist/amd/decorators.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
define(['exports', 'core-js', 'aurelia-metadata', './bindable-property', './children', './element-config', './view-strategy', './html-behavior'], function (exports, _coreJs, _aureliaMetadata, _bindableProperty, _children, _elementConfig, _viewStrategy, _htmlBehavior) {
'use strict';

var _interopRequire = function (obj) { return obj && obj.__esModule ? obj['default'] : obj; };

exports.__esModule = true;
exports.behavior = behavior;
exports.customElement = customElement;
Expand All @@ -13,12 +11,21 @@ define(['exports', 'core-js', 'aurelia-metadata', './bindable-property', './chil
exports.syncChildren = syncChildren;
exports.useShadowDOM = useShadowDOM;
exports.skipContentProcessing = skipContentProcessing;
exports.containerless = containerless;
exports.viewStrategy = viewStrategy;
exports.useView = useView;
exports.noView = noView;
exports.elementConfig = elementConfig;

var _core = _interopRequire(_coreJs);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _core = _interopRequireDefault(_coreJs);

function validateBehaviorName(name, type) {
if (/[A-Z]/.test(name)) {
throw new Error('\'' + name + '\' is not a valid ' + type + ' name. Upper-case letters are not allowed because the DOM is not case-sensitive.');
}
}

function behavior(override) {
return function (target) {
Expand All @@ -34,6 +41,7 @@ define(['exports', 'core-js', 'aurelia-metadata', './bindable-property', './chil
_aureliaMetadata.Decorators.configure.parameterizedDecorator('behavior', behavior);

function customElement(name) {
validateBehaviorName(name, 'custom element');
return function (target) {
var resource = _aureliaMetadata.Metadata.getOrCreateOwn(_aureliaMetadata.Metadata.resource, _htmlBehavior.HtmlBehaviorResource, target);
resource.elementName = name;
Expand All @@ -42,10 +50,12 @@ define(['exports', 'core-js', 'aurelia-metadata', './bindable-property', './chil

_aureliaMetadata.Decorators.configure.parameterizedDecorator('customElement', customElement);

function customAttribute(name) {
function customAttribute(name, defaultBindingMode) {
validateBehaviorName(name, 'custom attribute');
return function (target) {
var resource = _aureliaMetadata.Metadata.getOrCreateOwn(_aureliaMetadata.Metadata.resource, _htmlBehavior.HtmlBehaviorResource, target);
resource.attributeName = name;
resource.attributeDefaultBindingMode = defaultBindingMode;
};
}

Expand Down Expand Up @@ -134,6 +144,17 @@ define(['exports', 'core-js', 'aurelia-metadata', './bindable-property', './chil

_aureliaMetadata.Decorators.configure.simpleDecorator('skipContentProcessing', skipContentProcessing);

function containerless(target) {
var deco = function deco(target) {
var resource = _aureliaMetadata.Metadata.getOrCreateOwn(_aureliaMetadata.Metadata.resource, _htmlBehavior.HtmlBehaviorResource, target);
resource.containerless = true;
};

return target ? deco(target) : deco;
}

_aureliaMetadata.Decorators.configure.simpleDecorator('containerless', containerless);

function viewStrategy(strategy) {
return function (target) {
Reflect.defineMetadata(_viewStrategy.ViewStrategy.metadataKey, strategy, target);
Expand Down
Loading

0 comments on commit 74cc2be

Please sign in to comment.