Skip to content

Commit

Permalink
chore(all): prepare release 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 28, 2015
1 parent 3775b62 commit 7836395
Show file tree
Hide file tree
Showing 30 changed files with 245 additions and 55 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-templating-resources",
"version": "0.8.8",
"version": "0.8.9",
"description": "A standard set of behaviors, converters and other resources for use with the Aurelia templating library.",
"keywords": [
"aurelia",
Expand Down
10 changes: 8 additions & 2 deletions dist/amd/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating"], functi

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Container = _aureliaDependencyInjection.Container;
var Behavior = _aureliaTemplating.Behavior;
var CompositionEngine = _aureliaTemplating.CompositionEngine;
var ViewSlot = _aureliaTemplating.ViewSlot;
var ViewResources = _aureliaTemplating.ViewResources;

var Compose = exports.Compose = (function () {
function Compose(container, compositionEngine, viewSlot, viewResources) {
_classCallCheck(this, Compose);

this.container = container;
this.compositionEngine = compositionEngine;
this.viewSlot = viewSlot;
Expand Down Expand Up @@ -68,7 +73,6 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating"], functi
return Compose;
})();


function processInstruction(composer, instruction) {
composer.compositionEngine.compose(Object.assign(instruction, {
executionContext: composer.executionContext,
Expand All @@ -80,5 +84,7 @@ define(["exports", "aurelia-dependency-injection", "aurelia-templating"], functi
composer.current = next;
});
}
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 8 additions & 2 deletions dist/amd/global-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ define(["exports", "aurelia-templating", "aurelia-logging"], function (exports,

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;
var LogManager = _aureliaLogging;

var GlobalBehavior = exports.GlobalBehavior = (function () {
function GlobalBehavior(element) {
_classCallCheck(this, GlobalBehavior);

this.element = element;
}

Expand Down Expand Up @@ -79,7 +84,6 @@ define(["exports", "aurelia-templating", "aurelia-logging"], function (exports,
return GlobalBehavior;
})();


GlobalBehavior.createSettingsFromBehavior = function (behavior) {
var settings = {};

Expand Down Expand Up @@ -123,5 +127,7 @@ define(["exports", "aurelia-templating", "aurelia-logging"], function (exports,
}
}
};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 9 additions & 1 deletion dist/amd/if.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;
var BoundViewFactory = _aureliaTemplating.BoundViewFactory;
var ViewSlot = _aureliaTemplating.ViewSlot;

var If = exports.If = (function () {
function If(viewFactory, viewSlot) {
_classCallCheck(this, If);

this.viewFactory = viewFactory;
this.viewSlot = viewSlot;
this.showing = false;
Expand Down Expand Up @@ -62,5 +67,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

return If;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
5 changes: 3 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ define(["exports", "./compose", "./if", "./with", "./repeat", "./show", "./selec
var GlobalBehavior = _globalBehavior.GlobalBehavior;
var InnerHTML = _innerHtml.InnerHTML;


function install(aurelia) {
aurelia.withResources([Show, If, With, Repeat, Compose, SelectedItem, GlobalBehavior, InnerHTML]);
}
Expand All @@ -24,5 +23,7 @@ define(["exports", "./compose", "./if", "./with", "./repeat", "./show", "./selec
exports.SelectedItem = SelectedItem;
exports.GlobalBehavior = GlobalBehavior;
exports.install = install;
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 9 additions & 1 deletion dist/amd/inner-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;

var InnerHTML = exports.InnerHTML = (function () {
function InnerHTML(element) {
_classCallCheck(this, InnerHTML);

this.element = element;
this.sanitizer = InnerHTML.defaultSanitizer;
}
Expand Down Expand Up @@ -68,5 +73,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

return InnerHTML;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
19 changes: 17 additions & 2 deletions dist/amd/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var ObserverLocator = _aureliaBinding.ObserverLocator;
var calcSplices = _aureliaBinding.calcSplices;
var getChangeRecords = _aureliaBinding.getChangeRecords;
var Behavior = _aureliaTemplating.Behavior;
var BoundViewFactory = _aureliaTemplating.BoundViewFactory;
var ViewSlot = _aureliaTemplating.ViewSlot;

var Repeat = exports.Repeat = (function () {
function Repeat(viewFactory, viewSlot, observerLocator) {
_classCallCheck(this, Repeat);

this.viewFactory = viewFactory;
this.viewSlot = viewSlot;
this.observerLocator = observerLocator;
Expand Down Expand Up @@ -38,6 +43,7 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,
bind: {
value: function bind(executionContext) {
var _this = this;

var items = this.items;

this.executionContext = executionContext;
Expand Down Expand Up @@ -127,6 +133,7 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,
processArrayItems: {
value: function processArrayItems(items) {
var _this = this;

var viewFactory = this.viewFactory,
viewSlot = this.viewSlot,
i,
Expand All @@ -153,6 +160,7 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,
processMapEntries: {
value: function processMapEntries(items) {
var _this = this;

var viewFactory = this.viewFactory,
viewSlot = this.viewSlot,
index = 0,
Expand Down Expand Up @@ -251,6 +259,9 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,
length,
row;

//TODO: track which views are moved instead of removed better
//TODO: only update context after highest changed index

for (i = 0, ii = splices.length; i < ii; ++i) {
splice = splices[i];
removed = splice.removed;
Expand Down Expand Up @@ -278,7 +289,7 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,

if (view) {
viewLookup["delete"](model);
viewSlot.insert(addIndex, view);
viewSlot.insert(addIndex, view); //TODO: move
} else {
row = this.createBaseExecutionContext(model);
view = this.viewFactory.create(row);
Expand Down Expand Up @@ -360,6 +371,7 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,
child;

for (i = 0, ii = viewSlot.children.length; i < ii; ++i) {
// TODO (martingust) better way to get index?
child = viewSlot.children[i];
if (child.bindings[0].source[this.key] === key) {
return i;
Expand All @@ -373,5 +385,8 @@ define(["exports", "aurelia-binding", "aurelia-templating"], function (exports,

return Repeat;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 9 additions & 1 deletion dist/amd/selected-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;

var SelectedItem = exports.SelectedItem = (function () {
function SelectedItem(element) {
_classCallCheck(this, SelectedItem);

this.element = element;
this.options = [];
this.callback = this.selectedIndexChanged.bind(this);
Expand Down Expand Up @@ -89,5 +94,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

return SelectedItem;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 8 additions & 2 deletions dist/amd/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;

function addStyleString(str) {
var node = document.createElement("style");
Expand All @@ -17,6 +18,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var Show = exports.Show = (function () {
function Show(element) {
_classCallCheck(this, Show);

this.element = element;
}

Expand Down Expand Up @@ -51,5 +54,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

return Show;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
10 changes: 9 additions & 1 deletion dist/amd/with.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = _aureliaTemplating.Behavior;
var BoundViewFactory = _aureliaTemplating.BoundViewFactory;
var ViewSlot = _aureliaTemplating.ViewSlot;

var With = exports.With = (function () {
function With(viewFactory, viewSlot) {
_classCallCheck(this, With);

this.viewFactory = viewFactory;
this.viewSlot = viewSlot;
}
Expand Down Expand Up @@ -44,5 +49,8 @@ define(["exports", "aurelia-templating"], function (exports, _aureliaTemplating)

return With;
})();
exports.__esModule = true;

Object.defineProperty(exports, "__esModule", {
value: true
});
});
11 changes: 9 additions & 2 deletions dist/commonjs/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Container = require("aurelia-dependency-injection").Container;

var _aureliaTemplating = require("aurelia-templating");

var Behavior = _aureliaTemplating.Behavior;
var CompositionEngine = _aureliaTemplating.CompositionEngine;
var ViewSlot = _aureliaTemplating.ViewSlot;
var ViewResources = _aureliaTemplating.ViewResources;

var Compose = exports.Compose = (function () {
function Compose(container, compositionEngine, viewSlot, viewResources) {
_classCallCheck(this, Compose);

this.container = container;
this.compositionEngine = compositionEngine;
this.viewSlot = viewSlot;
Expand Down Expand Up @@ -69,7 +75,6 @@ var Compose = exports.Compose = (function () {
return Compose;
})();


function processInstruction(composer, instruction) {
composer.compositionEngine.compose(Object.assign(instruction, {
executionContext: composer.executionContext,
Expand All @@ -81,4 +86,6 @@ function processInstruction(composer, instruction) {
composer.current = next;
});
}
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
10 changes: 8 additions & 2 deletions dist/commonjs/global-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? ob

var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };

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

var Behavior = require("aurelia-templating").Behavior;

var LogManager = _interopRequireWildcard(require("aurelia-logging"));

var GlobalBehavior = exports.GlobalBehavior = (function () {
function GlobalBehavior(element) {
_classCallCheck(this, GlobalBehavior);

this.element = element;
}

Expand Down Expand Up @@ -81,7 +86,6 @@ var GlobalBehavior = exports.GlobalBehavior = (function () {
return GlobalBehavior;
})();


GlobalBehavior.createSettingsFromBehavior = function (behavior) {
var settings = {};

Expand Down Expand Up @@ -125,4 +129,6 @@ GlobalBehavior.handlers = {
}
}
};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
Loading

0 comments on commit 7836395

Please sign in to comment.